pickleDB is a lightweight and simple key-value store. It is inspired by written in Python - pickleDB.
package main
import (
cucumber "github.com/gopherzz/cucumberdb"
)
func main() {
db := cucumber.New()
db.Load("database.jdb")
db.Set("key", "value") // -> true
db.Get("key") // -> value
db.Dump()
}func New() *Db
/ Return new cucumberdb objectfunc (db *Db) Append(key, more string) bool
/ Add more to a key's valuefunc (db *Db) DelDb() bool
/ Delete everything from the databasefunc (db *Db) Dump() error
/ Save the database from memory to a file specified in Load or Initfuc (db *Db) Get(key string) interface{}
/ Get the value of a keyfunc (db *Db) GetAll() []string
/ Return a list of all keys in databasefunc (db *Db) Init(name string) error
/ Create new database file with name, and open itfunc (db *Db) LAdd(name string, value interface{}) bool
/ Add a value to a listfunc (db *Db) LCreate(name string) bool
/ Create a listfunc (db *Db) LGet(name string, pos int) interface{}
/ Return one value in a listfunc (db *Db) LGetAll(name string) []interface{}
/ Return all values in a listfunc (db *Db) LPop(name string, pos int) interface{}
/ Remove one value in a list and return itfunc (db *Db) LRem(name string) bool
/ Remove a list and all of its valuesfunc (db *Db) Load(database string) error
/ Load a database from a filefunc (db *Db) Rem(key string) bool
/ Delete a keyfunc (db *Db) Set(key string, value interface{}) bool
/ Set the value of a keyn