storage

package
v0.0.0-...-d6036ea Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 7, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

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
}

func InitDB

func InitDB(dbPath string) (*DB, error)

InitDB 初始化 SQLite 数据库并创建表结构

func (*DB) Close

func (db *DB) Close()

Close 关闭数据库连接

func (*DB) SaveSymbols

func (db *DB) SaveSymbols(symbols []parser.Symbol) error

SaveSymbols 批量保存解析出的符号到数据库

func (*DB) TraceSymbol

func (db *DB) TraceSymbol(symbolName string) ([]parser.Symbol, error)

TraceSymbol 查询符号的定义位置

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL