sqlite

package
v0.4.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewInterpreter

func NewInterpreter() common.Interpreter

func OpenDB

func OpenDB(dataSourceName string, maxOpenConns, maxIdleConns int, maxIdleTime time.Duration, skipPragmas bool) (*sql.DB, error)

Types

type BasePersistence

type BasePersistence[V any, R any] struct {
	*common.BasePersistence[V, R]
}

func (*BasePersistence[V, R]) SetStates

func (db *BasePersistence[V, R]) SetStates(ns driver.Namespace, kvs map[driver.PKey]V) map[driver.PKey]error

type TestDriver

type TestDriver struct {
	Name    string
	TempDir string
}

func (*TestDriver) NewTransactionalUnversioned

func (t *TestDriver) NewTransactionalUnversioned(dataSourceName string, config driver.Config) (driver.TransactionalUnversionedPersistence, error)

func (*TestDriver) NewTransactionalVersioned

func (t *TestDriver) NewTransactionalVersioned(dataSourceName string, config driver.Config) (driver.TransactionalVersionedPersistence, error)

func (*TestDriver) NewUnversioned

func (t *TestDriver) NewUnversioned(dataSourceName string, config driver.Config) (driver.UnversionedPersistence, error)

func (*TestDriver) NewVersioned

func (t *TestDriver) NewVersioned(dataSourceName string, config driver.Config) (driver.VersionedPersistence, error)

type UnversionedPersistence

type UnversionedPersistence struct {
	*common.UnversionedPersistence
}

func NewUnversioned

func NewUnversioned(opts common.Opts, table string) (*UnversionedPersistence, error)

type VersionedPersistence

type VersionedPersistence struct {
	*common.VersionedPersistence
}

func NewVersioned

func NewVersioned(opts common.Opts, table string) (*VersionedPersistence, error)

Jump to

Keyboard shortcuts

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