Documentation ¶
Index ¶
- func Count(dbname, collname string, spec map[string]any) int
- func Distinct(dbname, collname, field string) ([]any, error)
- func Get(dbname, collname string, spec map[string]any, idx, limit int) []map[string]any
- func GetSorted(dbname, collname string, spec map[string]any, skeys []string, ...) []map[string]any
- func InitDB(dbDir string)
- func Insert(dbname, collname string, records []map[string]any)
- func InsertRecord(dbname, collname string, rec map[string]any) error
- func Remove(dbname, collname string, spec map[string]any) error
- func Update(dbname, collname string, spec, newdata map[string]any)
- func Upsert(dbname, collname, attr string, records []map[string]any) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetSorted ¶
func GetSorted(dbname, collname string, spec map[string]any, skeys []string, sortOrder, idx, limit int) []map[string]any
GetSorted fetches records from document-oriented db sorted by given key with specific order
func InsertRecord ¶
InsertRecord insert record with given spec to document-oriented db
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.