sqlite

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	BusyTimeout     int
	MaxIdleConns    int
	ConnMaxIdleTime time.Duration
	CacheSize       int   // KB (negative = KB, positive = pages), default -64000 (64MB)
	MmapSize        int64 // Memory-mapped I/O size in bytes, default 268435456 (256MB)
}

type SQLite

type SQLite struct {
	Database *sqlx.DB
}

func New

func New(dbName string, config Config) (*SQLite, error)

func (*SQLite) Close

func (sqlite *SQLite) Close() error

func (*SQLite) Conn

func (sqlite *SQLite) Conn() *sqlx.DB

Jump to

Keyboard shortcuts

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