Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithMysqlCtx ¶
func WithMysqlCtx(ctx context.Context) func(*MysqlOptions)
func WithMysqlDb ¶
func WithMysqlDb(db *gorm.DB) func(*MysqlOptions)
Types ¶
type Mysql ¶
type Mysql struct { Ctx context.Context Tx *gorm.DB Db *gorm.DB // contains filtered or unexported fields }
func NewMysql ¶
func NewMysql(options ...func(*MysqlOptions)) Mysql
type MysqlOptions ¶
type MysqlOptions struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.