Documentation ¶
Index ¶
- func Close(conn *mongo.Client)
- func Dbname(tag string) string
- func Dsn(tag string) string
- func Open(tag string) *mongo.Client
- func Register(tag string, dbname string, dsn string)
- type Model
- func (M Model) Columns(fields ...string) map[string]any
- func (M Model) Count() int32
- func (M Model) Delete() int64
- func (M Model) Exist(id string) bool
- func (M Model) Field(fields string) *Orm
- func (M Model) Find() map[string]any
- func (M Model) Group(fields ...string) *Orm
- func (M Model) Having(field string, opr string, criteria int) *Orm
- func (M Model) Insert(data map[string]any) string
- func (M Model) Limit(limit int64) *Orm
- func (M Model) New() *Orm
- func (M Model) Order(field string, sort string) *Orm
- func (M Model) Page(page int64) *Orm
- func (M Model) Select() []map[string]any
- func (M Model) Sum(field string) int32
- func (M Model) Update(data map[string]any) int64
- func (M Model) Value(field string) any
- func (M Model) Values(field string) []any
- func (M Model) Where(conds ...any) *Orm
- type Orm
- func (O *Orm) Columns(fields ...string) map[string]any
- func (O *Orm) Count() int32
- func (O *Orm) Delete() int64
- func (O *Orm) Exist(id string) bool
- func (O *Orm) Field(fields string) *Orm
- func (O *Orm) Find() map[string]any
- func (O *Orm) Group(fields ...string) *Orm
- func (O *Orm) Having(field string, opr string, criteria int) *Orm
- func (O *Orm) Init(dbtag string, table string) *Orm
- func (O *Orm) Insert(data map[string]any) string
- func (O *Orm) Limit(limit int64) *Orm
- func (O *Orm) Order(field string, sort string) *Orm
- func (O *Orm) Page(page int64) *Orm
- func (O *Orm) Select() []map[string]any
- func (O *Orm) Sum(field string) int32
- func (O *Orm) Update(data map[string]any) int64
- func (O *Orm) Value(field string) any
- func (O *Orm) Values(field string) []any
- func (O *Orm) Where(conds ...any) *Orm
- type Parser
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.