sqlite

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Database

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

func (*Database) Del

func (d *Database) Del(key string) error

func (*Database) Exists added in v0.2.0

func (d *Database) Exists(key string) (bool, error)

func (*Database) Get

func (d *Database) Get(key string) ([]byte, error)

func (*Database) Init

func (d *Database) Init(tableName, urn string) error

func (*Database) MDel

func (d *Database) MDel(keys ...string) error

func (*Database) MExists added in v0.2.0

func (d *Database) MExists(keys ...string) ([]bool, error)

MExists checks for existence of all specified keys. Booleans will be returned in the same order as keys are specified.

func (*Database) MGet

func (d *Database) MGet(keys ...string) ([][]byte, error)

func (*Database) MSet

func (d *Database) MSet(kvs types.KeyValues, expiresAt *time.Time) error

MSet sets the specified hash keys to their associated values, setting them to expire at the specified time. Returns nil. Raises on error.

func (*Database) Raw added in v0.3.1

func (d *Database) Raw() *sql.DB

func (*Database) Set

func (d *Database) Set(key string, value []byte, expiresAt *time.Time) error

Jump to

Keyboard shortcuts

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