Versions in this module Expand all Collapse all v0 v0.2.0 Nov 5, 2026 Changes in this version + var ErrNoIndex = errors.New("repository not indexed") + func IndexDirFor(repoPath string) (string, error) + func ReadRepoPath(dir string) (string, error) + type CallGraphRow struct + CalleeName string + CallerID int64 + Deferred bool + Qualifier string + type FuncIORow struct + DoesIO bool + ID int64 + Name string + type FunctionFingerprintRow struct + FilePath string + FingerprintJSON string + Scope string + type FunctionLocation struct + FilePath string + ID int64 + Name string + StartLine int + type MinerFunctionRow struct + FilePath string + FingerprintJSON string + ID int64 + Language string + Name string + Scope string + StartLine int + type Pattern struct + ClaimJSON string + ClaimType string + Confidence float64 + PopulationCount int + Scope string + SupportCount int + type PatternEntry struct + ClaimJSON string + ClaimType string + Confidence float64 + CounterExamplesJSON *string + EvidenceJSON string + PopulationCount int + Scope string + SupportCount int + Tier string + type ScopeRule struct + ClaimJSON string + ClaimType string + Confidence float64 + EvidenceIDs []int64 + PopulationCount int + Scope string + SupportCount int + type Store struct + func Open(repoPath string) (*Store, error) + func OpenExisting(repoPath string) (*Store, error) + func (s *Store) AllFiles(ctx context.Context) ([]types.FileRecord, error) + func (s *Store) AllPatterns(ctx context.Context) ([]Pattern, error) + func (s *Store) AnyDoesIO(ctx context.Context, names []string) (bool, error) + func (s *Store) CallGraph(ctx context.Context) ([]CallGraphRow, error) + func (s *Store) ClearPatterns(ctx context.Context) error + func (s *Store) ClearSubsystems(ctx context.Context) error + func (s *Store) ClearVocabulary(ctx context.Context) error + func (s *Store) Close() error + func (s *Store) CountFunctions(ctx context.Context) (int, error) + func (s *Store) CountPatterns(ctx context.Context) (int, error) + func (s *Store) CountSubsystems(ctx context.Context) (int, error) + func (s *Store) CountVocabulary(ctx context.Context) (int, error) + func (s *Store) DBPath() string + func (s *Store) DominantLanguage(ctx context.Context, dirPrefix string) (string, error) + func (s *Store) FileIndexed(ctx context.Context, path string) (bool, error) + func (s *Store) FunctionCallees(ctx context.Context, id int64) ([]CallGraphRow, error) + func (s *Store) FunctionCode(ctx context.Context, id int64) (string, error) + func (s *Store) FunctionFingerprints(ctx context.Context) ([]FunctionFingerprintRow, error) + func (s *Store) FunctionLocations(ctx context.Context, ids []int64) ([]FunctionLocation, error) + func (s *Store) FunctionsWithIO(ctx context.Context) ([]FuncIORow, error) + func (s *Store) MinerFunctions(ctx context.Context) ([]MinerFunctionRow, error) + func (s *Store) PopulateFunctionVocabulary(ctx context.Context) error + func (s *Store) RepoPath(ctx context.Context) (string, error) + func (s *Store) ResetIndexData(ctx context.Context) error + func (s *Store) RulesForCheck(ctx context.Context, scope string) ([]ScopeRule, error) + func (s *Store) SchemaVersion(ctx context.Context) (int, error) + func (s *Store) SetDoesIO(ctx context.Context, functionIDs []int64, value bool) error + func (s *Store) ShapeMatches(ctx context.Context, hash, lang, excludeFile, excludeName string) ([]FunctionLocation, error) + func (s *Store) SubsystemFunctionCounts(ctx context.Context) (map[string]int, error) + func (s *Store) UpdateVocabularyUsage(ctx context.Context) error + func (s *Store) WriteFiles(ctx context.Context, records []types.FileRecord) error + func (s *Store) WriteFunctions(ctx context.Context, records []types.FunctionRecord) error + func (s *Store) WritePatterns(ctx context.Context, entries []PatternEntry) error + func (s *Store) WriteSubsystems(ctx context.Context, entries []SubsystemEntry) error + func (s *Store) WriteVocabulary(ctx context.Context, entries []types.VocabEntry) error + type SubsystemEntry struct + ConventionsJSON string + FunctionCount int + PathPrefix string