Documentation
¶
Overview ¶
Package graph provides the dominikbraun/graph.Store adapter backed by the Provenance SQLite database. It bridges the in-memory graph library with persistent storage so that cycle detection and traversal work over the full blocked-by subgraph.
Index ¶
- func NewGraph(db *dbsqlite.DB) dgraph.Graph[string, ptypes.Task]
- type Store
- func (s *Store) AddEdge(sourceHash, targetHash string, _ dgraph.Edge[string]) error
- func (s *Store) AddVertex(hash string, value ptypes.Task, _ dgraph.VertexProperties) error
- func (s *Store) Edge(sourceHash, targetHash string) (dgraph.Edge[string], error)
- func (s *Store) ListEdges() ([]dgraph.Edge[string], error)
- func (s *Store) ListVertices() ([]string, error)
- func (s *Store) RemoveEdge(sourceHash, targetHash string) error
- func (s *Store) RemoveVertex(_ string) error
- func (s *Store) UpdateEdge(sourceHash, targetHash string, _ dgraph.Edge[string]) error
- func (s *Store) Vertex(hash string) (ptypes.Task, dgraph.VertexProperties, error)
- func (s *Store) VertexCount() (int, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store implements dgraph.Store[string, ptypes.Task] for the blocked-by subgraph. All persistence is delegated to the internal/sqlite.DB.
func (*Store) ListVertices ¶
func (*Store) RemoveEdge ¶
func (*Store) RemoveVertex ¶
func (*Store) UpdateEdge ¶
func (*Store) VertexCount ¶
Click to show internal directories.
Click to hide internal directories.