Documentation
¶
Index ¶
Constants ¶
View Source
const (
DriverTypeMysql = "mysql"
)
Variables ¶
This section is empty.
Functions ¶
func IsNotFound ¶
func NewLogger ¶
func NewLogger(options *loggerOptions) gormLogger.Interface
Types ¶
type Config ¶
type Config struct { DryRun bool `json:"dryRun" yaml:"dryRun"` Migration bool `json:"migration" yaml:"migration"` UpdateAll bool `json:"updateAll" yaml:"updateAll"` Driver string `json:"driver" yaml:"driver"` Prefix string `json:"prefix" yaml:"prefix"` Mysql MysqlConfig `json:"mysql" yaml:"mysql"` Logger loggerOptions `json:"logger" yaml:"logger"` PingTimeout Duration `json:"pingTimeout" yaml:"pingTimeout"` // contains filtered or unexported fields }
type Database ¶
type Database struct {
// contains filtered or unexported fields
}
func Instantiate ¶
type Duration ¶
type Duration int64
func (*Duration) UnmarshalJSON ¶
func (*Duration) UnmarshalYAML ¶
type MysqlConfig ¶
type MysqlConfig struct { DSN string `json:"dsn" yaml:"dsn"` Network string `json:"network" yaml:"network"` Address string `json:"address" yaml:"address"` Username string `json:"username" yaml:"username"` Password string `json:"password" yaml:"password"` PublicKey string `json:"publicKey" yaml:"publicKey"` Database string `json:"database" yaml:"database"` Collation string `json:"collation" yaml:"collation"` Timezone string `json:"timezone" yaml:"timezone"` DialTimeout string `json:"dailTimeout" yaml:"dailTimeout"` ReadTimeout string `json:"readTimeout" yaml:"readTimeout"` WriteTimeout string `json:"writeTimeout" yaml:"writeTimeout"` NoReadonly bool `json:"noReadonly" yaml:"noReadonly"` TlsConfig network.TlsConfig `json:"tls" yaml:"tls"` Params map[string]string `json:"params" yaml:"params"` }
Click to show internal directories.
Click to hide internal directories.