Documentation ¶
Index ¶
- Variables
- func NewDatabase(databaseName string, opts ...database.Option) (database.Database, error)
- func NewTable(db database.Database, tableName string) (database.Table, error)
- type MongoTable
- func (tbl *MongoTable) Create(e interface{}) error
- func (tbl *MongoTable) Delete() error
- func (tbl *MongoTable) Exists() bool
- func (tbl *MongoTable) Find(q interface{}, skip int, limit int, result interface{}) (err error)
- func (tbl *MongoTable) FindAll(q interface{}, result interface{}) error
- func (tbl *MongoTable) FindOne(q interface{}, result interface{}) error
- func (tbl *MongoTable) Insert(elem interface{}) error
- func (tbl *MongoTable) Name() string
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Config = &mongodbConfig{ done: make(chan struct{}), } )
Config ...
Functions ¶
func NewDatabase ¶
NewDatabase ...
Types ¶
type MongoTable ¶
type MongoTable struct { Session db.Database // contains filtered or unexported fields }
func (*MongoTable) Exists ¶
func (tbl *MongoTable) Exists() bool
func (*MongoTable) Find ¶
func (tbl *MongoTable) Find(q interface{}, skip int, limit int, result interface{}) (err error)
func (*MongoTable) FindAll ¶
func (tbl *MongoTable) FindAll(q interface{}, result interface{}) error
func (*MongoTable) FindOne ¶
func (tbl *MongoTable) FindOne(q interface{}, result interface{}) error
Click to show internal directories.
Click to hide internal directories.