Documentation ¶
Index ¶
- func New() db.Database
- type DB
- func (m *DB) Address() string
- func (m *DB) Connect(handlers ...db.Handler) error
- func (m *DB) Disconnect(handlers ...db.Handler) error
- func (m *DB) Handle() interface{}
- func (m *DB) Init(opts db.Options) error
- func (m *DB) Options() db.Options
- func (m *DB) PrintIndexes(collection string)
- func (m *DB) String() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DB ¶
type DB struct {
// contains filtered or unexported fields
}
DB implements mongodb database
func (*DB) Disconnect ¶
Disconnect disconnects the db connection
func (*DB) Handle ¶
func (m *DB) Handle() interface{}
Handle returns the raw connection handle to the db
func (*DB) PrintIndexes ¶
PrintIndexes prints all the indexes in the db
Click to show internal directories.
Click to hide internal directories.