sqlite

package
v0.3.0-rc.1 Latest Latest
Warning

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

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

Documentation

Overview

Package sqlite provides the production SQLite storage driver.

Index

Constants

This section is empty.

Variables

View Source
var ErrEmptyPath = errors.New("sqlite database path is required")

Functions

This section is empty.

Types

type Config

type Config struct {
	BusyTimeout     int
	MaxOpenConns    int
	MaxIdleConns    int
	ConnMaxIdleTime time.Duration
	CacheSize       int
	MmapSize        int64
	Durability      store.Durability
}

type Driver

type Driver struct {
	// contains filtered or unexported fields
}

func Open

func Open(path string, config Config) (*Driver, error)

func (*Driver) Close

func (driver *Driver) Close() error

func (*Driver) DB

func (driver *Driver) DB() *sql.DB

func (*Driver) Dialect

func (driver *Driver) Dialect() store.Dialect

func (*Driver) DriverName

func (driver *Driver) DriverName() string

func (*Driver) SQLiteMaintenanceEnabled

func (driver *Driver) SQLiteMaintenanceEnabled() bool

Jump to

Keyboard shortcuts

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