db

package
v0.0.0-...-8e295f1 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2019 License: Apache-2.0 Imports: 1 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) Delete

func (db *DataBase) Delete(key string, idx int)

func (*DataBase) Insert

func (db *DataBase) Insert(key string, value interface{}) (string, int)

func (*DataBase) Select

func (db *DataBase) Select(key string) interface{}

func (*DataBase) SelectCollection

func (db *DataBase) SelectCollection(key string) []string

func (*DataBase) Update

func (db *DataBase) Update(key string, validator func(upValue interface{}))

type IDataBase

type IDataBase interface {
	Insert(key string, value interface{}) (string, int)
	Select(key string) interface{}
	SelectCollection(key string) []string
	Delete(key string, idx int)
	Update(key string, validator func(upValue interface{}))
}

func InitDb

func InitDb() IDataBase

Jump to

Keyboard shortcuts

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