Documentation ¶
Index ¶
- type Mongo_client
- type Mongo_options
- type Mongo_table
- func (object *Mongo_table) Add(document ...interface{}) interface{}
- func (object *Mongo_table) Del(document interface{}) interface{}
- func (object *Mongo_table) Dels(document interface{}) interface{}
- func (object *Mongo_table) Find(filter interface{}, opts ...Mongo_options) interface{}
- func (object *Mongo_table) Finds(filter interface{}, opts ...Mongo_options) []interface{}
- func (object *Mongo_table) Update(filter interface{}, update interface{}) interface{}
- func (object *Mongo_table) Updates(filter interface{}, update interface{}) interface{}
- func (object *Mongo_table) Upsert(filter interface{}, update interface{}) interface{}
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Mongo_client ¶
type Mongo_client struct {
// contains filtered or unexported fields
}
func (*Mongo_client) Table ¶
func (object *Mongo_client) Table(db_name string, table_name string) *Mongo_table
type Mongo_options ¶
type Mongo_options struct { Limit *int32 Timeout int Show interface{} Skip *int64 Sort interface{} }
func (*Mongo_options) Conver_find ¶
func (opt *Mongo_options) Conver_find() *options.FindOneOptions
func (*Mongo_options) Conver_finds ¶
func (opt *Mongo_options) Conver_finds() *options.FindOptions
type Mongo_table ¶
type Mongo_table struct {
// contains filtered or unexported fields
}
func (*Mongo_table) Add ¶
func (object *Mongo_table) Add(document ...interface{}) interface{}
func (*Mongo_table) Del ¶
func (object *Mongo_table) Del(document interface{}) interface{}
func (*Mongo_table) Dels ¶
func (object *Mongo_table) Dels(document interface{}) interface{}
func (*Mongo_table) Find ¶
func (object *Mongo_table) Find(filter interface{}, opts ...Mongo_options) interface{}
func (*Mongo_table) Finds ¶
func (object *Mongo_table) Finds(filter interface{}, opts ...Mongo_options) []interface{}
func (*Mongo_table) Update ¶
func (object *Mongo_table) Update(filter interface{}, update interface{}) interface{}
func (*Mongo_table) Updates ¶
func (object *Mongo_table) Updates(filter interface{}, update interface{}) interface{}
func (*Mongo_table) Upsert ¶
func (object *Mongo_table) Upsert(filter interface{}, update interface{}) interface{}
Click to show internal directories.
Click to hide internal directories.