sqlite

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DB

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

DB is a wrapper over *sql.DB,

func (*DB) Close

func (db *DB) Close() error

Close implements database.DB.

func (*DB) CmpAndSwap

func (db *DB) CmpAndSwap(bucket []byte, key []byte, oldValue []byte, newValue []byte) ([]byte, bool, error)

CmpAndSwap implements database.DB.

func (*DB) CreateTable

func (db *DB) CreateTable(bucket []byte) error

CreateTable implements database.DB.

func (*DB) Del

func (db *DB) Del(bucket []byte, key []byte) error

Del implements database.DB.

func (*DB) DeleteTable

func (db *DB) DeleteTable(bucket []byte) error

DeleteTable implements database.DB.

func (*DB) Get

func (db *DB) Get(bucket []byte, key []byte) (ret []byte, err error)

Get implements database.DB.

func (*DB) List

func (db *DB) List(bucket []byte) ([]*database.Entry, error)

List implements database.DB.

func (*DB) Open

func (db *DB) Open(dataSourceName string, opt ...database.Option) error

Open implements database.DB.

func (*DB) Set

func (db *DB) Set(bucket []byte, key []byte, value []byte) error

Set implements database.DB.

func (*DB) Update

func (db *DB) Update(tx *database.Tx) error

Update implements database.DB.

Jump to

Keyboard shortcuts

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