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 InitDocDB(uri string)
- 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 ¶ added in v0.5.2
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 InitDocDB ¶
func InitDocDB(uri string)
InitDocDB initializes document-oriented db connection object
func InsertRecord ¶ added in v0.5.2
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.