db

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2022 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Collection

type Collection interface {
	Key() string
	Put(c Context, key string, data []byte) error
	Del(c Context, key string) error
	Get(c Context, key string) ([]byte, error)
	GetObject(c Context, key string) (interface{}, error)
	PutObject(c Context, key string, object interface{}) error
	MergeObject(c Context, key string, object interface{}) error
	Exec(c Context, code string) (string, error)
	Query(c Context, prefix string) (source.Cursor, error)
}

type Context

type Context interface {
	Recycle()
}

type Database

type Database interface {
	Collection(key string) Collection
	NewContext() Context
	Recycle()
}

func Open

func Open(s source.Source) Database

Jump to

Keyboard shortcuts

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