Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager interface { GetConnection() *connection.Connection GetClient() interface{} /** @todo maybe remove these shortcuts */ /* shortcut methods used for valid return types */ GetClientForMysql() *gorm.DB GetClientForMongo() *mongo.Client }
func NewMongo ¶
func NewMongo(connection *connection.Connection) Manager
func NewMysql ¶
func NewMysql(connection *connection.Connection, env string) Manager
type Mongo ¶
type Mongo struct {
// contains filtered or unexported fields
}
func (*Mongo) GetClientForMongo ¶
func (*Mongo) GetClientForMysql ¶
func (*Mongo) GetConnection ¶
func (m *Mongo) GetConnection() *connection.Connection
type Mysql ¶
type Mysql struct {
// contains filtered or unexported fields
}
func (*Mysql) GetClientForMongo ¶
func (*Mysql) GetClientForMysql ¶
func (*Mysql) GetConnection ¶
func (m *Mysql) GetConnection() *connection.Connection
Click to show internal directories.
Click to hide internal directories.