Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DBConnectionInfo ¶
type DBConnectionInfo struct { Server string `toml:"server" yaml:"server"` User string `toml:"user" yaml:"user"` Passwd string `toml:"password" yaml:"password"` Database string `toml:"database" yaml:"database"` Driver string `toml:"driver" yaml:"driver"` Option string `toml:"option" yaml:"option"` LogMode bool `toml:"logmode" yaml:"logmode"` TestOnBoot bool `toml:"test-on-boot" yaml:"test-on-boot"` Disable bool `toml:"disable" yaml:"disable"` IntegerTag int `toml:"integer-tag" yaml:"integer-tag"` StringTag string `toml:"string-tag" yaml:"string-tag"` }
type IDBConnection ¶
type IDBConnection interface { GetConnection(callback func(xdb *DB) (interface{}, error)) (interface{}, error) GetExtraProperty(property string) interface{} GetDialect() IDbDialect }
type IDBConnectionExtended ¶
type IDatabaseUtil ¶
type IDbDialect ¶
type IHaveForeignKey ¶
type IHaveForeignKey interface {
AddForeignKey(xdb *DB)
}
type IMigratable ¶
type IMigratable interface {
AutoMigrate(xdb *DB)
}
Click to show internal directories.
Click to hide internal directories.