storage

package
v1.0.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 18, 2021 License: BSD-2-Clause Imports: 1 Imported by: 0

Documentation

Overview

Package storage provides type definition for managing OBO graphs in a persistent storage

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DataSource

type DataSource interface {
	// SaveOboGraphInfo perist OBO graphs metadata in the storage
	SaveOboGraphInfo(graph.OboGraph) error
	// UpdateOboGraphInfo update OBO graph metadata in the storage
	UpdateOboGraphInfo(graph.OboGraph) error
	// ExistOboGraph checks for existence of a particular OBO graph
	ExistsOboGraph(graph.OboGraph) bool
	// SaveTerms persist all terms in the storage
	SaveTerms(graph.OboGraph) (int, error)
	// UpdateTerms update existing terms in the storage
	UpdateTerms(graph.OboGraph) (int, error)
	// SaveorUpdateTerms either insert and update terms in the storage
	SaveOrUpdateTerms(graph.OboGraph) (int, int, error)
	// SaveRelationships persist all relationships in the storage
	SaveRelationships(graph.OboGraph) (int, error)
	// SaveNewRelationships skips the existing one and saves only the new relationships
	SaveNewRelationships(graph.OboGraph) (int, error)
}

DataSource represents interface for storing and retrieving OBO graphs

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL