sqlite

package
v0.0.41 Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNoEntryFound = errors.New("no entry found")

Functions

This section is empty.

Types

type DB

type DB struct {
	*sqlx.DB
	sync.RWMutex

	Reference atomic.Int32
	// contains filtered or unexported fields
}

func New

func New(ctx context.Context, name string, storage Storage) (*DB, error)

func (*DB) Close

func (db *DB) Close(removeLocalDB bool) error

func (*DB) Delete added in v0.0.18

func (db *DB) Delete(ctx context.Context) error

func (*DB) Open

func (db *DB) Open(ctx context.Context) error

func (*DB) Path

func (db *DB) Path() string

func (*DB) Sync

func (db *DB) Sync(ctx context.Context) error

type Storage

type Storage struct {
	Bucket     *blob.Bucket
	DataDir    string
	Repository string

	SchemaFS   fs.FS
	SchemaGlob string

	Filename           string
	CompressedFilename string
}

Jump to

Keyboard shortcuts

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