Documentation
¶
Index ¶
- type DbGraph
- func (d *DbGraph) Close() error
- func (d *DbGraph) Edges(fromID, toID uuid.UUID, updatedBefore time.Time) (graph.EdgeIterator, error)
- func (d *DbGraph) FindLink(id uuid.UUID) (*graph.Link, error)
- func (d *DbGraph) Links(fromID, toID uuid.UUID, accessedBefore time.Time) (graph.LinkIterator, error)
- func (d *DbGraph) RemoveStaleEdges(fromID uuid.UUID, updatedBefore time.Time) error
- func (d *DbGraph) UpsertEdge(edge *graph.Edge) error
- func (d *DbGraph) UpsertLink(link *graph.Link) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DbGraph ¶
type DbGraph struct {
// contains filtered or unexported fields
}
func NewCockroachDbGraph ¶
NewCockroachDbGraph returns a CockroachDbGraph instance that connects to the cockroachdb instance specified by dsn.
func (*DbGraph) Links ¶
func (d *DbGraph) Links(fromID, toID uuid.UUID, accessedBefore time.Time) (graph.LinkIterator, error)
Links returns an iterator for the set of links whose IDs belong to the [fromID, toID) range were last accessed before provideed value
func (*DbGraph) RemoveStaleEdges ¶
Click to show internal directories.
Click to hide internal directories.