sqlite

package
v0.1.17 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// misoapi-config: path to SQLite database file
	PropSqliteFile = "sqlite.file"

	// misoapi-config: enable WAL mode | true
	PropSqliteWalEnabled = "sqlite.wal.enabled"
)

misoapi-config-section: SQLite Configuration

Variables

This section is empty.

Functions

func GetDB

func GetDB() *gorm.DB

Get SQLite client.

func NewConn

func NewConn(path string, wal bool) (*gorm.DB, error)

Create new SQLite connection.

func TableHasColumn added in v0.1.17

func TableHasColumn(table string, column string, d *gorm.DB) (ok bool, err error)

func TableHasColumnFunc added in v0.1.17

func TableHasColumnFunc(table string, column string) func(*gorm.DB) (ok bool, err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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