sqlite

package
v0.4.13 Latest Latest
Warning

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

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

Documentation

Overview

SQLite integration.

Index

Constants

View Source
const (

	// misoconfig-prop: path to SQLite database file
	PropSqliteFile = "sqlite.file"

	// misoconfig-prop: enable WAL mode | true
	PropSqliteWalEnabled = "sqlite.wal.enabled"

	// misoconfig-prop: log sql statements | false
	PropSqliteLogSQL = "sqlite.log-sql"
)

misoconfig-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 NotTableHasColumn added in v0.1.19

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

func NotTableHasColumnFunc added in v0.1.19

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

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)

func UpdateLoggerConfig added in v0.4.13

func UpdateLoggerConfig(config logger.Config)

Types

This section is empty.

Jump to

Keyboard shortcuts

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