Documentation
¶
Index ¶
- type DB
- func (db *DB) Close() error
- func (db *DB) IndexLocalRepo(ctx context.Context, localPath string, opts index.IndexOptions) error
- func (db *DB) IndexRepo(ctx context.Context, url string, opts index.IndexOptions) error
- func (db *DB) ParseSymbols(ctx context.Context, progress func(string)) (index.ParseStats, error)
- func (db *DB) RawSQL(query string) ([]string, [][]string, error)
- func (db *DB) Search(ctx context.Context, input string) ([]search.Result, error)
- func (db *DB) Store() *store.Store
- func (db *DB) TranslateQuery(input string) (*search.TranslatedQuery, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DB ¶
type DB struct {
// contains filtered or unexported fields
}
DB is the top-level CodeDB facade.
func (*DB) IndexLocalRepo ¶
IndexLocalRepo indexes a local git repository in-place, including dirty working tree files.
func (*DB) ParseSymbols ¶
ParseSymbols extracts symbols from all unparsed blobs with supported languages.
func (*DB) TranslateQuery ¶
func (db *DB) TranslateQuery(input string) (*search.TranslatedQuery, error)
TranslateQuery parses a query and returns the generated SQL without executing.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package symbols extracts symbol definitions and references from source code using tree-sitter for accurate AST-based parsing.
|
Package symbols extracts symbol definitions and references from source code using tree-sitter for accurate AST-based parsing. |
Click to show internal directories.
Click to hide internal directories.