mongo

package
v0.0.0-...-9eaa835 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 5, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

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

func Mongo(ip string, port int) (*Mongo_client, error)

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{}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL