Documentation
¶
Overview ¶
Package sqlite - provide sqlite integration
Index ¶
- func GetDBPath() string
- func Open(dbPath string) (*sql.DB, error)
- func OpenDB(elem ...string) (*sql.DB, error)
- func RegisterIndexSchema(ss ...string)
- func RegisterPostInitHook(hook func(*sql.DB) error)
- func RegisterTableSchema(ss ...string)
- func RegisterUpgradeSchema(ss ...string)
- func SetDBPath(path string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func OpenDB ¶ added in v0.7.3
OpenDB 打开数据库连接(确保数据库已初始化)
Types ¶
This section is empty.
Source Files
¶
- db.go
- sqlite.go
Click to show internal directories.
Click to hide internal directories.