sqlite

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2024 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

type Store struct {
	*sqlx.DB
}

DB is a representation of the datastore

func New

func New(path string) (Store, error)

New creates a new db with given settings

func (*Store) DeleteObject

func (store *Store) DeleteObject(key string) error

func (*Store) GetObject

func (store *Store) GetObject(key string) ([]byte, error)

func (*Store) ListObjectKeys

func (store *Store) ListObjectKeys(prefix string) ([]string, error)

func (*Store) PutObject

func (store *Store) PutObject(key string, content []byte, force bool) error

Jump to

Keyboard shortcuts

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