Versions in this module Expand all Collapse all v0 v0.0.2 Feb 24, 2022 Changes in this version + func NewDB() db.IDB + type DB struct + func (d *DB) Object(objectApiName string) db.IObject + type Object struct + func NewObject(objectApiName string) *Object + func (o *Object) Create(record interface{}) (*structs.RecordOnlyId, error) + func (o *Object) DeleteById(_id int64) error + func (o *Object) Find(records interface{}) error + func (o *Object) FindOne(record interface{}) error + func (o *Object) Limit(limit int64) db.IQuery + func (o *Object) Offset(offset int64) db.IQuery + func (o *Object) OrderBy(fieldApiNames ...string) db.IQuery + func (o *Object) OrderByDesc(fieldApiNames ...string) db.IQuery + func (o *Object) Select(fieldApiNames ...string) db.IQuery + func (o *Object) UpdateById(_id int64, record interface{}) error + func (o *Object) Where(condition interface{}) db.IQuery + type Query struct + func (q *Query) Find(records interface{}) error + func (q *Query) FindOne(record interface{}) error + func (q *Query) Limit(limit int64) db.IQuery + func (q *Query) Offset(offset int64) db.IQuery + func (q *Query) OrderBy(fieldApiNames ...string) db.IQuery + func (q *Query) OrderByDesc(fieldApiNames ...string) db.IQuery + func (q *Query) Select(fieldApiNames ...string) db.IQuery + func (q *Query) Where(condition interface{}) db.IQuery v0.0.1 Jan 6, 2022