Versions in this module Expand all Collapse all v0 v0.1.7 Jan 5, 2026 v0.1.6 Jan 1, 2026 Changes in this version + type DBPool interface + Close func() + Exec func(ctx context.Context, sql string, arguments ...any) (pgconn.CommandTag, error) + Query func(ctx context.Context, sql string, args ...any) (pgx.Rows, error) + QueryRow func(ctx context.Context, sql string, args ...any) pgx.Row + type InMemoryKG struct + func NewInMemoryKG(logger *zap.Logger) (*InMemoryKG, error) + func (kg *InMemoryKG) AddEdge(ctx context.Context, edge schemas.Edge) error + func (kg *InMemoryKG) AddNode(ctx context.Context, node schemas.Node) error + func (kg *InMemoryKG) GetEdge(ctx context.Context, id string) (schemas.Edge, error) + func (kg *InMemoryKG) GetEdges(ctx context.Context, nodeID string) ([]schemas.Edge, error) + func (kg *InMemoryKG) GetNeighbors(ctx context.Context, nodeID string) ([]schemas.Node, error) + func (kg *InMemoryKG) GetNode(ctx context.Context, id string) (schemas.Node, error) + func (kg *InMemoryKG) QueryImprovementHistory(ctx context.Context, goalObjective string, limit int) ([]schemas.Node, error) + type PostgresKG struct + func NewPostgresKG(pool DBPool, logger *zap.Logger) *PostgresKG + func (p *PostgresKG) AddEdge(ctx context.Context, edge schemas.Edge) error + func (p *PostgresKG) AddNode(ctx context.Context, node schemas.Node) error + func (p *PostgresKG) GetEdge(ctx context.Context, id string) (schemas.Edge, error) + func (p *PostgresKG) GetEdges(ctx context.Context, nodeID string) ([]schemas.Edge, error) + func (p *PostgresKG) GetNeighbors(ctx context.Context, nodeID string) ([]schemas.Node, error) + func (p *PostgresKG) GetNode(ctx context.Context, id string) (schemas.Node, error) + func (p *PostgresKG) QueryImprovementHistory(ctx context.Context, goalObjective string, limit int) ([]schemas.Node, error)