mysql

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: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(configItem *dbi.ConfigItem, dc *dbi.Config) (backend dbi.DbBackend)

Types

type Mysql

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

func (*Mysql) CloseAll

func (s *Mysql) CloseAll()

func (*Mysql) Open

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

type MysqlCRUD

type MysqlCRUD struct {
	TableName  string
	PrimaryKey []string
	Model      dbi.DbModel
	Session    *MysqlSession
}

type MysqlModel

type MysqlModel struct {
}

type MysqlSession

type MysqlSession struct {
	Instance *gorm.DB
	// contains filtered or unexported fields
}

func (*MysqlSession) Close

func (s *MysqlSession) Close()

func (*MysqlSession) DB

func (s *MysqlSession) DB() *gorm.DB

func (*MysqlSession) GetCRUD

func (s *MysqlSession) 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