orm

package
v0.0.20 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var OrmInters = map[string]orm_inter{}

Functions

This section is empty.

Types

type MssqlAdapter

type MssqlAdapter struct{}

func (*MssqlAdapter) GetConn

func (m *MssqlAdapter) GetConn(username, password, path, db_name, config string) string

func (*MssqlAdapter) Open

func (m *MssqlAdapter) Open(username, password, path, db_name, config string) gorm.Dialector

type MysqlAdapter

type MysqlAdapter struct{}

func (*MysqlAdapter) GetConn

func (m *MysqlAdapter) GetConn(username, password, path, db_name, config string) string

func (*MysqlAdapter) Open

func (m *MysqlAdapter) Open(username, password, path, db_name, config string) gorm.Dialector

type Orm

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

func GetOrm

func GetOrm() *Orm

func InitOrm

func InitOrm(conf *conf.Config) *Orm

func NewOrm

func NewOrm() *Orm

func (*Orm) Get

func (m *Orm) Get(name string) *gorm.DB

func (*Orm) Set

func (m *Orm) Set(name string, db *gorm.DB)

Jump to

Keyboard shortcuts

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