db

package
v0.0.0-...-1b82b6c Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2024 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SmartDb

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

func NewSmartDb

func NewSmartDb() (*SmartDb, error)

func (*SmartDb) Clear

func (sdb *SmartDb) Clear() error

func (*SmartDb) Close

func (sdb *SmartDb) Close() error

func (*SmartDb) Delete

func (sdb *SmartDb) Delete(domainPath string) (found bool, err error)

func (*SmartDb) DeleteOne

func (sdb *SmartDb) DeleteOne(domainPath string, id string) (found bool, err error)

func (*SmartDb) Get

func (sdb *SmartDb) Get(domainPath string) ([]map[string]interface{}, error)

func (*SmartDb) GetOne

func (sdb *SmartDb) GetOne(domainPath string, id string) (map[string]interface{}, error)

func (*SmartDb) InsertOne

func (sdb *SmartDb) InsertOne(domainPath string, reqBody map[string]interface{}) (string, error)

func (*SmartDb) UpdateOne

func (sdb *SmartDb) UpdateOne(domainPath string, id string, reqBody map[string]interface{}) (found bool, err error)

Jump to

Keyboard shortcuts

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