Documentation
¶
Index ¶
- type AssetRegistry
- type MariaDB
- func (m *MariaDB) Close() error
- func (m *MariaDB) CountAssets() (int64, error)
- func (m *MariaDB) CountRelations() (int64, error)
- func (m *MariaDB) FlushAll() error
- func (m *MariaDB) InitializeSchema() error
- func (m *MariaDB) ListSources(ctx context.Context) ([]string, error)
- func (m *MariaDB) LoadSchema(ctx context.Context, sourceName string) (schema.SchemaGraph, error)
- func (m *MariaDB) Query(ctx context.Context, query *query.QueryIL) (*knowledge.GraphQueryResult, error)
- func (m *MariaDB) ReadGraph(source string, graph *knowledge.Graph) error
- func (m *MariaDB) SaveSchema(ctx context.Context, sourceName string, schema schema.SchemaGraph) error
- func (m *MariaDB) UpdateGraph(source string, bulk *knowledge.GraphUpdatesBulk) error
- type MariaDBCursor
- type SourceRelation
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AssetRegistry ¶
type AssetRegistry struct {
// contains filtered or unexported fields
}
AssetIDResolver store ID assets in a cache
type MariaDB ¶
type MariaDB struct {
// contains filtered or unexported fields
}
MariaDB mariadb as graph storage backend
func NewMariaDB ¶
NewMariaDB create an instance of mariadb
func (*MariaDB) CountAssets ¶
CountAssets count the total number of assets in db.
func (*MariaDB) CountRelations ¶
CountRelations count the total number of relations in db.
func (*MariaDB) InitializeSchema ¶
InitializeSchema initialize the schema of the database
func (*MariaDB) LoadSchema ¶
func (*MariaDB) Query ¶
func (m *MariaDB) Query(ctx context.Context, query *query.QueryIL) (*knowledge.GraphQueryResult, error)
Query the database with provided intermediate query representation
func (*MariaDB) SaveSchema ¶
func (*MariaDB) UpdateGraph ¶
func (m *MariaDB) UpdateGraph(source string, bulk *knowledge.GraphUpdatesBulk) error
UpdateGraph update graph with bulk of operations
type MariaDBCursor ¶
type MariaDBCursor struct { *sql.Rows Projections []knowledge.Projection }
func (*MariaDBCursor) Close ¶
func (mc *MariaDBCursor) Close() error
func (*MariaDBCursor) HasMore ¶
func (mc *MariaDBCursor) HasMore() bool
type SourceRelation ¶
SourceRelation represent a relation coming from a source
Click to show internal directories.
Click to hide internal directories.