db

package module
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2020 License: MIT Imports: 8 Imported by: 1

README

db

Database abstractions for Snart.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DB

type DB struct {
	opts.Opts
	impl.Impl
	form.Form
}

DB is a wrapper for a number of database implementations.

func New

func New(o opts.Opts) (*DB, error)

func Open added in v0.3.0

func Open(uri string) (*DB, error)

func (*DB) Close added in v0.4.1

func (d *DB) Close() error

func (*DB) Del added in v0.4.1

func (d *DB) Del(k string) error

func (*DB) Get added in v0.4.1

func (d *DB) Get(k string, v interface{}) error

func (*DB) Keys added in v0.4.1

func (d *DB) Keys() ([]string, error)

func (*DB) Set added in v0.4.1

func (d *DB) Set(k string, v interface{}) error

Directories

Path Synopsis
fs

Jump to

Keyboard shortcuts

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