database

package
v0.0.0-...-714f5cf Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NullValue = "NULL"
)

Variables

View Source
var (
	EndOpErr               = errors.New("exiting database")
	TransactionNotFoundErr = errors.New("TRANSACTION NOT FOUND")
)

Functions

This section is empty.

Types

type Database

type Database struct {
	Transaction *Txn
	// contains filtered or unexported fields
}

func New

func New() *Database

type Txn

type Txn struct {
	// contains filtered or unexported fields
}

func (*Txn) Begin

func (t *Txn) Begin() *Txn

func (*Txn) Commit

func (t *Txn) Commit() *Txn

func (*Txn) Count

func (t *Txn) Count(value string) int

func (*Txn) Delete

func (t *Txn) Delete(name string)

func (*Txn) Get

func (t *Txn) Get(name string) string

func (*Txn) Rollback

func (t *Txn) Rollback() (*Txn, error)

func (*Txn) Set

func (t *Txn) Set(name, value string)

Jump to

Keyboard shortcuts

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