Documentation ¶
Index ¶
- Variables
- func GetDb(name string) *gorm.DB
- func IsEmpty(set ...DbSet) bool
- func OpenConnect(op Option) (db *gorm.DB, err error)
- func RFC3339() string
- func SetDb(name string, db *gorm.DB)
- func SetDbFromOption(name string, op Option) error
- func Uint8ToTime(ua []uint8) (time.Time, error)
- type DbConfig
- type DbSet
- type EmixConfig
- type MsqlPager
- type Operation
- type Option
- type RootConfig
Constants ¶
This section is empty.
Variables ¶
View Source
var ConnectBeEmptyErr = errors.New("connect be empty")
View Source
var DefaultPageCount int64 = 10
Functions ¶
func SetDbFromOption ¶
Types ¶
type DbConfig ¶
type EmixConfig ¶
type EmixConfig struct {
Db []DbConfig `yaml:"db,flow"`
}
type MsqlPager ¶
type RootConfig ¶
type RootConfig struct {
Emix EmixConfig `yaml:"emix"`
}
Click to show internal directories.
Click to hide internal directories.