Documentation
¶
Index ¶
- type ConfirmPathKeyParams
- type CountEdgesByKindRow
- type CountNodeMatchesByNameParams
- type CountNodeMatchesByNameRow
- type CountNodeMatchesByQualifiedNameParams
- type CountNodeMatchesByQualifiedNameRow
- type CountNodeMatchesBySubstringParams
- type CountNodeMatchesBySubstringRow
- type CountNodesByKindRow
- type DBTX
- type DirtyFact
- type DirtyNode
- type DirtyOwner
- type DirtyTarget
- type Edge
- type Fact
- type File
- type FindNodesExactKindParams
- type FindNodesExactKindRow
- type FindNodesExactRow
- type InsertEdgeParams
- type ListCanonicalMessagesParams
- type ListDirtyFactBatchRow
- type ListEdgesFromRow
- type ListEdgesToRow
- type ListExternalEdgesMatchingParams
- type ListExternalEdgesMatchingRow
- type ListExternalNodesMatchingParams
- type ListExternalRequestEdgesParams
- type ListExternalRequestEdgesRow
- type ListIncomingRelationEdgesParams
- type ListIncomingRelationEdgesRow
- type ListNodesByKindParams
- type ListOutgoingRelationEdgesParams
- type ListOutgoingRelationEdgesRow
- type MarkDirtyTargetParams
- type MarkOwnedNamesDirtyParams
- type MatchNodesByNameParams
- type MatchNodesByQualifiedNameParams
- type MatchNodesBySubstringParams
- type Meta
- type Node
- type Path
- type Querier
- type Queries
- func (q *Queries) ClearDirtyNodes(ctx context.Context) error
- func (q *Queries) ClearDirtyOwners(ctx context.Context) error
- func (q *Queries) ClearDirtyTargets(ctx context.Context) error
- func (q *Queries) ClearReconciliationCleanup(ctx context.Context) error
- func (q *Queries) Close() error
- func (q *Queries) ConfirmPathKey(ctx context.Context, arg ConfirmPathKeyParams) (bool, error)
- func (q *Queries) CountDirtyFacts(ctx context.Context) (int64, error)
- func (q *Queries) CountEdges(ctx context.Context) (int64, error)
- func (q *Queries) CountEdgesByKind(ctx context.Context) ([]CountEdgesByKindRow, error)
- func (q *Queries) CountExternalNodes(ctx context.Context) (int64, error)
- func (q *Queries) CountFacts(ctx context.Context) (int64, error)
- func (q *Queries) CountFiles(ctx context.Context) (int64, error)
- func (q *Queries) CountNodeMatchesByName(ctx context.Context, arg CountNodeMatchesByNameParams) (CountNodeMatchesByNameRow, error)
- func (q *Queries) CountNodeMatchesByQualifiedName(ctx context.Context, arg CountNodeMatchesByQualifiedNameParams) (CountNodeMatchesByQualifiedNameRow, error)
- func (q *Queries) CountNodeMatchesBySubstring(ctx context.Context, arg CountNodeMatchesBySubstringParams) (CountNodeMatchesBySubstringRow, error)
- func (q *Queries) CountNodes(ctx context.Context) (int64, error)
- func (q *Queries) CountNodesByKind(ctx context.Context) ([]CountNodesByKindRow, error)
- func (q *Queries) CountPaths(ctx context.Context) (int64, error)
- func (q *Queries) DeleteAllEdges(ctx context.Context) error
- func (q *Queries) DeleteDirtyFactBatch(ctx context.Context, limit int64) error
- func (q *Queries) DeleteEdgesByDirtyFactBatch(ctx context.Context, limit int64) error
- func (q *Queries) DeleteEdgesByOwnerFacts(ctx context.Context, path string) error
- func (q *Queries) DeleteExternalNodes(ctx context.Context) error
- func (q *Queries) DeleteFactsByOwner(ctx context.Context, path string) error
- func (q *Queries) DeleteFile(ctx context.Context, path string) error
- func (q *Queries) DeleteNodesByOwner(ctx context.Context, ownerFile string) error
- func (q *Queries) DeleteOrphanExternalNodes(ctx context.Context) error
- func (q *Queries) DeleteUnreferencedPaths(ctx context.Context) error
- func (q *Queries) EnqueueDirtyFacts(ctx context.Context) error
- func (q *Queries) FindNodesExact(ctx context.Context, target string) ([]FindNodesExactRow, error)
- func (q *Queries) FindNodesExactKind(ctx context.Context, arg FindNodesExactKindParams) ([]FindNodesExactKindRow, error)
- func (q *Queries) GetMeta(ctx context.Context, key string) (string, error)
- func (q *Queries) GetNode(ctx context.Context, id string) (Node, error)
- func (q *Queries) InsertEdge(ctx context.Context, arg InsertEdgeParams) error
- func (q *Queries) InternPath(ctx context.Context, path string) (int64, error)
- func (q *Queries) ListCanonicalMessages(ctx context.Context, arg ListCanonicalMessagesParams) ([]Node, error)
- func (q *Queries) ListDirtyFactBatch(ctx context.Context, limit int64) ([]ListDirtyFactBatchRow, error)
- func (q *Queries) ListEdgesFrom(ctx context.Context, fromID string) ([]ListEdgesFromRow, error)
- func (q *Queries) ListEdgesTo(ctx context.Context, toID string) ([]ListEdgesToRow, error)
- func (q *Queries) ListExternalEdgesMatching(ctx context.Context, arg ListExternalEdgesMatchingParams) ([]ListExternalEdgesMatchingRow, error)
- func (q *Queries) ListExternalNodesMatching(ctx context.Context, arg ListExternalNodesMatchingParams) ([]Node, error)
- func (q *Queries) ListExternalRequestEdges(ctx context.Context, arg ListExternalRequestEdgesParams) ([]ListExternalRequestEdgesRow, error)
- func (q *Queries) ListFiles(ctx context.Context) ([]File, error)
- func (q *Queries) ListIncomingRelationEdges(ctx context.Context, arg ListIncomingRelationEdgesParams) ([]ListIncomingRelationEdgesRow, error)
- func (q *Queries) ListNodesByKind(ctx context.Context, arg ListNodesByKindParams) ([]Node, error)
- func (q *Queries) ListOutgoingRelationEdges(ctx context.Context, arg ListOutgoingRelationEdgesParams) ([]ListOutgoingRelationEdgesRow, error)
- func (q *Queries) ListSemanticCandidateNodes(ctx context.Context) ([]Node, error)
- func (q *Queries) MarkDirtyNode(ctx context.Context, nodeID string) error
- func (q *Queries) MarkDirtyOwner(ctx context.Context, ownerFile string) error
- func (q *Queries) MarkDirtyTarget(ctx context.Context, arg MarkDirtyTargetParams) error
- func (q *Queries) MarkOwnedNamesDirty(ctx context.Context, arg MarkOwnedNamesDirtyParams) error
- func (q *Queries) MarkOwnedNodesDirty(ctx context.Context, ownerFile string) error
- func (q *Queries) MarkReconciliationCleanup(ctx context.Context) error
- func (q *Queries) MatchNodesByName(ctx context.Context, arg MatchNodesByNameParams) ([]Node, error)
- func (q *Queries) MatchNodesByQualifiedName(ctx context.Context, arg MatchNodesByQualifiedNameParams) ([]Node, error)
- func (q *Queries) MatchNodesBySubstring(ctx context.Context, arg MatchNodesBySubstringParams) ([]Node, error)
- func (q *Queries) PruneDirtyFacts(ctx context.Context) error
- func (q *Queries) ReconciliationCleanupPending(ctx context.Context) (bool, error)
- func (q *Queries) ReconciliationPending(ctx context.Context) (bool, error)
- func (q *Queries) SearchNodes(ctx context.Context, arg SearchNodesParams) ([]Node, error)
- func (q *Queries) SetMeta(ctx context.Context, arg SetMetaParams) error
- func (q *Queries) UpsertFact(ctx context.Context, arg UpsertFactParams) error
- func (q *Queries) UpsertFile(ctx context.Context, arg UpsertFileParams) error
- func (q *Queries) UpsertNode(ctx context.Context, arg UpsertNodeParams) error
- func (q *Queries) WithTx(tx *sql.Tx) *Queries
- type ReconciliationCleanup
- type SearchNodesParams
- type SetMetaParams
- type UpsertFactParams
- type UpsertFileParams
- type UpsertNodeParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfirmPathKeyParams ¶
type CountEdgesByKindRow ¶
type CountNodesByKindRow ¶
type DirtyOwner ¶
type DirtyOwner struct {
OwnerFile string `json:"owner_file"`
}
type DirtyTarget ¶
type Fact ¶
type Fact struct {
ID string `json:"id"`
FromID string `json:"from_id"`
Source string `json:"source"`
SourceKind string `json:"source_kind"`
Kind string `json:"kind"`
Producer string `json:"producer"`
TargetID string `json:"target_id"`
Target string `json:"target"`
TargetKind string `json:"target_kind"`
PathID int64 `json:"path_id"`
Line int64 `json:"line"`
ColumnNo int64 `json:"column_no"`
EndLine int64 `json:"end_line"`
Properties string `json:"properties"`
OwnerPathID int64 `json:"owner_path_id"`
}
type FindNodesExactKindRow ¶
type FindNodesExactRow ¶
type InsertEdgeParams ¶
type ListDirtyFactBatchRow ¶
type ListDirtyFactBatchRow struct {
ID string `json:"id"`
FromID string `json:"from_id"`
Source string `json:"source"`
SourceKind string `json:"source_kind"`
Kind string `json:"kind"`
Producer string `json:"producer"`
TargetID string `json:"target_id"`
Target string `json:"target"`
TargetKind string `json:"target_kind"`
Path string `json:"path"`
Line int64 `json:"line"`
ColumnNo int64 `json:"column_no"`
EndLine int64 `json:"end_line"`
Properties string `json:"properties"`
OwnerFile string `json:"owner_file"`
PathsResolved int64 `json:"paths_resolved"`
SourceExists int64 `json:"source_exists"`
TargetExists int64 `json:"target_exists"`
}
type ListEdgesFromRow ¶
type ListEdgesFromRow struct {
ID string `json:"id"`
FactID string `json:"fact_id"`
FromID string `json:"from_id"`
ToID string `json:"to_id"`
Kind string `json:"kind"`
Properties string `json:"properties"`
Producer string `json:"producer"`
Path string `json:"path"`
Line int64 `json:"line"`
ColumnNo int64 `json:"column_no"`
EndLine int64 `json:"end_line"`
OriginResolved int64 `json:"origin_resolved"`
}
type ListEdgesToRow ¶
type ListEdgesToRow struct {
ID string `json:"id"`
FactID string `json:"fact_id"`
FromID string `json:"from_id"`
ToID string `json:"to_id"`
Kind string `json:"kind"`
Properties string `json:"properties"`
Producer string `json:"producer"`
Path string `json:"path"`
Line int64 `json:"line"`
ColumnNo int64 `json:"column_no"`
EndLine int64 `json:"end_line"`
OriginResolved int64 `json:"origin_resolved"`
}
type ListExternalEdgesMatchingRow ¶
type ListExternalEdgesMatchingRow struct {
ID string `json:"id"`
FactID string `json:"fact_id"`
FromID string `json:"from_id"`
ToID string `json:"to_id"`
Kind string `json:"kind"`
Properties string `json:"properties"`
Producer string `json:"producer"`
Path string `json:"path"`
Line int64 `json:"line"`
ColumnNo int64 `json:"column_no"`
EndLine int64 `json:"end_line"`
OriginResolved int64 `json:"origin_resolved"`
}
type ListExternalRequestEdgesRow ¶
type ListExternalRequestEdgesRow struct {
EdgeID string `json:"edge_id"`
EdgeFactID string `json:"edge_fact_id"`
EdgeFromID string `json:"edge_from_id"`
EdgeToID string `json:"edge_to_id"`
EdgeKind string `json:"edge_kind"`
EdgeProducer string `json:"edge_producer"`
EdgePath string `json:"edge_path"`
EdgeLine int64 `json:"edge_line"`
EdgeColumnNo int64 `json:"edge_column_no"`
EdgeEndLine int64 `json:"edge_end_line"`
EdgeProperties string `json:"edge_properties"`
EdgeOriginResolved int64 `json:"edge_origin_resolved"`
SourceID string `json:"source_id"`
SourceKind string `json:"source_kind"`
SourceName string `json:"source_name"`
SourceQualifiedName string `json:"source_qualified_name"`
SourceLanguage string `json:"source_language"`
SourcePath string `json:"source_path"`
SourceLine int64 `json:"source_line"`
SourceColumnNo int64 `json:"source_column_no"`
SourceEndLine int64 `json:"source_end_line"`
SourceProperties string `json:"source_properties"`
SourceOwnerFile string `json:"source_owner_file"`
SourceExternal int64 `json:"source_external"`
TargetID string `json:"target_id"`
TargetKind string `json:"target_kind"`
TargetName string `json:"target_name"`
TargetQualifiedName string `json:"target_qualified_name"`
TargetLanguage string `json:"target_language"`
TargetPath string `json:"target_path"`
TargetLine int64 `json:"target_line"`
TargetColumnNo int64 `json:"target_column_no"`
TargetEndLine int64 `json:"target_end_line"`
TargetProperties string `json:"target_properties"`
TargetOwnerFile string `json:"target_owner_file"`
TargetExternal int64 `json:"target_external"`
}
type ListIncomingRelationEdgesRow ¶
type ListIncomingRelationEdgesRow struct {
EdgeID string `json:"edge_id"`
EdgeFactID string `json:"edge_fact_id"`
EdgeFromID string `json:"edge_from_id"`
EdgeToID string `json:"edge_to_id"`
EdgeKind string `json:"edge_kind"`
EdgeProducer string `json:"edge_producer"`
EdgePath string `json:"edge_path"`
EdgeLine int64 `json:"edge_line"`
EdgeColumnNo int64 `json:"edge_column_no"`
EdgeEndLine int64 `json:"edge_end_line"`
EdgeProperties string `json:"edge_properties"`
EdgeOriginResolved int64 `json:"edge_origin_resolved"`
CounterpartID string `json:"counterpart_id"`
CounterpartKind string `json:"counterpart_kind"`
CounterpartName string `json:"counterpart_name"`
CounterpartQualifiedName string `json:"counterpart_qualified_name"`
CounterpartLanguage string `json:"counterpart_language"`
CounterpartPath string `json:"counterpart_path"`
CounterpartLine int64 `json:"counterpart_line"`
CounterpartColumnNo int64 `json:"counterpart_column_no"`
CounterpartEndLine int64 `json:"counterpart_end_line"`
CounterpartProperties string `json:"counterpart_properties"`
CounterpartOwnerFile string `json:"counterpart_owner_file"`
CounterpartExternal int64 `json:"counterpart_external"`
}
type ListNodesByKindParams ¶
type ListOutgoingRelationEdgesRow ¶
type ListOutgoingRelationEdgesRow struct {
EdgeID string `json:"edge_id"`
EdgeFactID string `json:"edge_fact_id"`
EdgeFromID string `json:"edge_from_id"`
EdgeToID string `json:"edge_to_id"`
EdgeKind string `json:"edge_kind"`
EdgeProducer string `json:"edge_producer"`
EdgePath string `json:"edge_path"`
EdgeLine int64 `json:"edge_line"`
EdgeColumnNo int64 `json:"edge_column_no"`
EdgeEndLine int64 `json:"edge_end_line"`
EdgeProperties string `json:"edge_properties"`
EdgeOriginResolved int64 `json:"edge_origin_resolved"`
CounterpartID string `json:"counterpart_id"`
CounterpartKind string `json:"counterpart_kind"`
CounterpartName string `json:"counterpart_name"`
CounterpartQualifiedName string `json:"counterpart_qualified_name"`
CounterpartLanguage string `json:"counterpart_language"`
CounterpartPath string `json:"counterpart_path"`
CounterpartLine int64 `json:"counterpart_line"`
CounterpartColumnNo int64 `json:"counterpart_column_no"`
CounterpartEndLine int64 `json:"counterpart_end_line"`
CounterpartProperties string `json:"counterpart_properties"`
CounterpartOwnerFile string `json:"counterpart_owner_file"`
CounterpartExternal int64 `json:"counterpart_external"`
}
type MarkDirtyTargetParams ¶
type MatchNodesByNameParams ¶
type Node ¶
type Node struct {
ID string `json:"id"`
Kind string `json:"kind"`
Name string `json:"name"`
QualifiedName string `json:"qualified_name"`
Language string `json:"language"`
Path string `json:"path"`
Line int64 `json:"line"`
ColumnNo int64 `json:"column_no"`
EndLine int64 `json:"end_line"`
Properties string `json:"properties"`
OwnerFile string `json:"owner_file"`
External int64 `json:"external"`
NameFolded string `json:"name_folded"`
QualifiedNameFolded string `json:"qualified_name_folded"`
}
type Querier ¶
type Querier interface {
ClearDirtyNodes(ctx context.Context) error
ClearDirtyOwners(ctx context.Context) error
ClearDirtyTargets(ctx context.Context) error
ClearReconciliationCleanup(ctx context.Context) error
ConfirmPathKey(ctx context.Context, arg ConfirmPathKeyParams) (bool, error)
CountDirtyFacts(ctx context.Context) (int64, error)
CountEdges(ctx context.Context) (int64, error)
CountEdgesByKind(ctx context.Context) ([]CountEdgesByKindRow, error)
CountExternalNodes(ctx context.Context) (int64, error)
CountFacts(ctx context.Context) (int64, error)
CountFiles(ctx context.Context) (int64, error)
CountNodeMatchesByName(ctx context.Context, arg CountNodeMatchesByNameParams) (CountNodeMatchesByNameRow, error)
CountNodeMatchesByQualifiedName(ctx context.Context, arg CountNodeMatchesByQualifiedNameParams) (CountNodeMatchesByQualifiedNameRow, error)
CountNodeMatchesBySubstring(ctx context.Context, arg CountNodeMatchesBySubstringParams) (CountNodeMatchesBySubstringRow, error)
CountNodes(ctx context.Context) (int64, error)
CountNodesByKind(ctx context.Context) ([]CountNodesByKindRow, error)
CountPaths(ctx context.Context) (int64, error)
// An edge stores only what reconciliation can resolve differently from its
// originating fact: the resolved endpoints, the relation kind (a structural
// test edge is derived from a calls or references fact), and the properties
// (destination evidence and test-coverage evidence are added per edge). Its
// producer and location are the fact's, so they are joined back instead of
// stored twice. origin_resolved lets the adapter fail closed on an index whose
// edge has lost its fact or interned path rather than report an empty location.
DeleteAllEdges(ctx context.Context) error
DeleteDirtyFactBatch(ctx context.Context, limit int64) error
DeleteEdgesByDirtyFactBatch(ctx context.Context, limit int64) error
DeleteEdgesByOwnerFacts(ctx context.Context, path string) error
DeleteExternalNodes(ctx context.Context) error
DeleteFactsByOwner(ctx context.Context, path string) error
DeleteFile(ctx context.Context, path string) error
DeleteNodesByOwner(ctx context.Context, ownerFile string) error
DeleteOrphanExternalNodes(ctx context.Context) error
DeleteUnreferencedPaths(ctx context.Context) error
EnqueueDirtyFacts(ctx context.Context) error
FindNodesExact(ctx context.Context, target string) ([]FindNodesExactRow, error)
FindNodesExactKind(ctx context.Context, arg FindNodesExactKindParams) ([]FindNodesExactKindRow, error)
GetMeta(ctx context.Context, key string) (string, error)
GetNode(ctx context.Context, id string) (Node, error)
InsertEdge(ctx context.Context, arg InsertEdgeParams) error
InternPath(ctx context.Context, path string) (int64, error)
ListCanonicalMessages(ctx context.Context, arg ListCanonicalMessagesParams) ([]Node, error)
ListDirtyFactBatch(ctx context.Context, limit int64) ([]ListDirtyFactBatchRow, error)
ListEdgesFrom(ctx context.Context, fromID string) ([]ListEdgesFromRow, error)
ListEdgesTo(ctx context.Context, toID string) ([]ListEdgesToRow, error)
ListExternalEdgesMatching(ctx context.Context, arg ListExternalEdgesMatchingParams) ([]ListExternalEdgesMatchingRow, error)
ListExternalNodesMatching(ctx context.Context, arg ListExternalNodesMatchingParams) ([]Node, error)
ListExternalRequestEdges(ctx context.Context, arg ListExternalRequestEdgesParams) ([]ListExternalRequestEdgesRow, error)
ListFiles(ctx context.Context) ([]File, error)
ListIncomingRelationEdges(ctx context.Context, arg ListIncomingRelationEdgesParams) ([]ListIncomingRelationEdgesRow, error)
ListNodesByKind(ctx context.Context, arg ListNodesByKindParams) ([]Node, error)
ListOutgoingRelationEdges(ctx context.Context, arg ListOutgoingRelationEdgesParams) ([]ListOutgoingRelationEdgesRow, error)
ListSemanticCandidateNodes(ctx context.Context) ([]Node, error)
MarkDirtyNode(ctx context.Context, nodeID string) error
MarkDirtyOwner(ctx context.Context, ownerFile string) error
MarkDirtyTarget(ctx context.Context, arg MarkDirtyTargetParams) error
MarkOwnedNamesDirty(ctx context.Context, arg MarkOwnedNamesDirtyParams) error
MarkOwnedNodesDirty(ctx context.Context, ownerFile string) error
MarkReconciliationCleanup(ctx context.Context) error
MatchNodesByName(ctx context.Context, arg MatchNodesByNameParams) ([]Node, error)
// Selector resolution queries. Each level is narrow and index-backed so
// ambiguity is decided from complete counts instead of a truncated substring
// window. nodes_qualified and nodes_name are COLLATE NOCASE indexes, so the
// case-insensitive equality below stays an index seek; the case-sensitive
// ("strict") form is counted separately because it is stronger evidence.
// @external selects the scope rather than discarding one: the adapter asks for
// local declarations first and falls back to external boundary nodes, so exact
// evidence about an external target is still exact rather than being pushed down
// into the weaker substring level.
MatchNodesByQualifiedName(ctx context.Context, arg MatchNodesByQualifiedNameParams) ([]Node, error)
MatchNodesBySubstring(ctx context.Context, arg MatchNodesBySubstringParams) ([]Node, error)
PruneDirtyFacts(ctx context.Context) error
ReconciliationCleanupPending(ctx context.Context) (bool, error)
ReconciliationPending(ctx context.Context) (bool, error)
SearchNodes(ctx context.Context, arg SearchNodesParams) ([]Node, error)
SetMeta(ctx context.Context, arg SetMetaParams) error
UpsertFact(ctx context.Context, arg UpsertFactParams) error
UpsertFile(ctx context.Context, arg UpsertFileParams) error
UpsertNode(ctx context.Context, arg UpsertNodeParams) error
}
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) ClearReconciliationCleanup ¶
func (*Queries) ConfirmPathKey ¶
func (*Queries) CountDirtyFacts ¶
func (*Queries) CountEdgesByKind ¶
func (q *Queries) CountEdgesByKind(ctx context.Context) ([]CountEdgesByKindRow, error)
func (*Queries) CountExternalNodes ¶
func (*Queries) CountNodeMatchesByName ¶
func (q *Queries) CountNodeMatchesByName(ctx context.Context, arg CountNodeMatchesByNameParams) (CountNodeMatchesByNameRow, error)
func (*Queries) CountNodeMatchesByQualifiedName ¶
func (q *Queries) CountNodeMatchesByQualifiedName(ctx context.Context, arg CountNodeMatchesByQualifiedNameParams) (CountNodeMatchesByQualifiedNameRow, error)
func (*Queries) CountNodeMatchesBySubstring ¶
func (q *Queries) CountNodeMatchesBySubstring(ctx context.Context, arg CountNodeMatchesBySubstringParams) (CountNodeMatchesBySubstringRow, error)
func (*Queries) CountNodesByKind ¶
func (q *Queries) CountNodesByKind(ctx context.Context) ([]CountNodesByKindRow, error)
func (*Queries) DeleteAllEdges ¶
An edge stores only what reconciliation can resolve differently from its originating fact: the resolved endpoints, the relation kind (a structural test edge is derived from a calls or references fact), and the properties (destination evidence and test-coverage evidence are added per edge). Its producer and location are the fact's, so they are joined back instead of stored twice. origin_resolved lets the adapter fail closed on an index whose edge has lost its fact or interned path rather than report an empty location.
func (*Queries) DeleteDirtyFactBatch ¶
func (*Queries) DeleteEdgesByDirtyFactBatch ¶
func (*Queries) DeleteEdgesByOwnerFacts ¶
func (*Queries) DeleteExternalNodes ¶
func (*Queries) DeleteFactsByOwner ¶
func (*Queries) DeleteNodesByOwner ¶
func (*Queries) DeleteOrphanExternalNodes ¶
func (*Queries) DeleteUnreferencedPaths ¶
func (*Queries) FindNodesExact ¶
func (*Queries) FindNodesExactKind ¶
func (q *Queries) FindNodesExactKind(ctx context.Context, arg FindNodesExactKindParams) ([]FindNodesExactKindRow, error)
func (*Queries) InsertEdge ¶
func (q *Queries) InsertEdge(ctx context.Context, arg InsertEdgeParams) error
func (*Queries) InternPath ¶
func (*Queries) ListCanonicalMessages ¶
func (*Queries) ListDirtyFactBatch ¶
func (*Queries) ListEdgesFrom ¶
func (*Queries) ListEdgesTo ¶
func (*Queries) ListExternalEdgesMatching ¶
func (q *Queries) ListExternalEdgesMatching(ctx context.Context, arg ListExternalEdgesMatchingParams) ([]ListExternalEdgesMatchingRow, error)
func (*Queries) ListExternalNodesMatching ¶
func (*Queries) ListExternalRequestEdges ¶
func (q *Queries) ListExternalRequestEdges(ctx context.Context, arg ListExternalRequestEdgesParams) ([]ListExternalRequestEdgesRow, error)
func (*Queries) ListIncomingRelationEdges ¶
func (q *Queries) ListIncomingRelationEdges(ctx context.Context, arg ListIncomingRelationEdgesParams) ([]ListIncomingRelationEdgesRow, error)
func (*Queries) ListNodesByKind ¶
func (*Queries) ListOutgoingRelationEdges ¶
func (q *Queries) ListOutgoingRelationEdges(ctx context.Context, arg ListOutgoingRelationEdgesParams) ([]ListOutgoingRelationEdgesRow, error)
func (*Queries) ListSemanticCandidateNodes ¶
func (*Queries) MarkDirtyNode ¶
func (*Queries) MarkDirtyOwner ¶
func (*Queries) MarkDirtyTarget ¶
func (q *Queries) MarkDirtyTarget(ctx context.Context, arg MarkDirtyTargetParams) error
func (*Queries) MarkOwnedNamesDirty ¶
func (q *Queries) MarkOwnedNamesDirty(ctx context.Context, arg MarkOwnedNamesDirtyParams) error
func (*Queries) MarkOwnedNodesDirty ¶
func (*Queries) MarkReconciliationCleanup ¶
func (*Queries) MatchNodesByName ¶
func (*Queries) MatchNodesByQualifiedName ¶
func (q *Queries) MatchNodesByQualifiedName(ctx context.Context, arg MatchNodesByQualifiedNameParams) ([]Node, error)
Selector resolution queries. Each level is narrow and index-backed so ambiguity is decided from complete counts instead of a truncated substring window. nodes_qualified and nodes_name are COLLATE NOCASE indexes, so the case-insensitive equality below stays an index seek; the case-sensitive ("strict") form is counted separately because it is stronger evidence. @external selects the scope rather than discarding one: the adapter asks for local declarations first and falls back to external boundary nodes, so exact evidence about an external target is still exact rather than being pushed down into the weaker substring level.
func (*Queries) MatchNodesBySubstring ¶
func (*Queries) ReconciliationCleanupPending ¶
func (*Queries) ReconciliationPending ¶
func (*Queries) SearchNodes ¶
func (*Queries) UpsertFact ¶
func (q *Queries) UpsertFact(ctx context.Context, arg UpsertFactParams) error
func (*Queries) UpsertFile ¶
func (q *Queries) UpsertFile(ctx context.Context, arg UpsertFileParams) error
func (*Queries) UpsertNode ¶
func (q *Queries) UpsertNode(ctx context.Context, arg UpsertNodeParams) error
type ReconciliationCleanup ¶
type ReconciliationCleanup struct {
ID int64 `json:"id"`
}
type SearchNodesParams ¶
type SetMetaParams ¶
type UpsertFactParams ¶
type UpsertFactParams struct {
ID string `json:"id"`
FromID string `json:"from_id"`
Source string `json:"source"`
SourceKind string `json:"source_kind"`
Kind string `json:"kind"`
Producer string `json:"producer"`
TargetID string `json:"target_id"`
Target string `json:"target"`
TargetKind string `json:"target_kind"`
PathID int64 `json:"path_id"`
Line int64 `json:"line"`
ColumnNo int64 `json:"column_no"`
EndLine int64 `json:"end_line"`
Properties string `json:"properties"`
OwnerPathID int64 `json:"owner_path_id"`
}
type UpsertFileParams ¶
type UpsertNodeParams ¶
type UpsertNodeParams struct {
ID string `json:"id"`
Kind string `json:"kind"`
Name string `json:"name"`
QualifiedName string `json:"qualified_name"`
Language string `json:"language"`
Path string `json:"path"`
Line int64 `json:"line"`
ColumnNo int64 `json:"column_no"`
EndLine int64 `json:"end_line"`
Properties string `json:"properties"`
OwnerFile string `json:"owner_file"`
External int64 `json:"external"`
NameFolded string `json:"name_folded"`
QualifiedNameFolded string `json:"qualified_name_folded"`
}