mongodb

package
v0.0.0-...-276be26 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(configItem *dbi.ConfigItem) (backend dbi.DbBackend)

Types

type Mgo

type Mgo struct {
	// contains filtered or unexported fields
}

func (*Mgo) CloseAll

func (s *Mgo) CloseAll()

func (*Mgo) Open

func (s *Mgo) Open() (session dbi.DbSession)

type MgoCRUD

type MgoCRUD struct {
	TableName  string
	PrimaryKey []string
	Model      dbi.DbModel
	Session    *MgoSession
}

type MgoModel

type MgoModel struct {
}

type MgoSession

type MgoSession struct {
	Instance *mgo.Session
	// contains filtered or unexported fields
}

func (*MgoSession) Close

func (s *MgoSession) Close()

func (*MgoSession) DB

func (s *MgoSession) DB() *mgo.Database

func (*MgoSession) GetCRUD

func (s *MgoSession) GetCRUD(model dbi.DbModel, tableName string, pkColumns ...string) (crud dbi.DbCRUD)

Jump to

Keyboard shortcuts

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