sqlite

package
v0.7.5 Latest Latest
Warning

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

Go to latest
Published: May 2, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package sqlite - provide sqlite integration

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDBPath added in v0.7.3

func GetDBPath() string

func Open

func Open(dbPath string) (*sql.DB, error)

func OpenDB added in v0.7.3

func OpenDB(elem ...string) (*sql.DB, error)

OpenDB 打开数据库连接(确保数据库已初始化)

func RegisterIndexSchema added in v0.7.3

func RegisterIndexSchema(ss ...string)

func RegisterPostInitHook added in v0.7.3

func RegisterPostInitHook(hook func(*sql.DB) error)

func RegisterTableSchema added in v0.7.3

func RegisterTableSchema(ss ...string)

func RegisterUpgradeSchema added in v0.7.3

func RegisterUpgradeSchema(ss ...string)

func SetDBPath added in v0.7.3

func SetDBPath(path string)

SetDBPath 设置数据库文件路径

Types

This section is empty.

Source Files

  • db.go
  • sqlite.go

Jump to

Keyboard shortcuts

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