Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Dsn string
Host string
Port int
Database string
Username string
Password string
Schema string
}
Config Used in config/database.go
type ConfigBuilder ¶
type ConfigBuilder interface {
Config() contractsconfig.Config
Reads() []FullConfig
Writes() []FullConfig
}
type FullConfig ¶
type FullConfig struct {
Config
Driver string
Connection string
Prefix string
Singular bool
Charset string // Mysql, Sqlserver
Loc string // Mysql
Sslmode string // Postgres
Timezone string // Postgres
NoLowerCase bool
NameReplacer Replacer
}
FullConfig Fill the default value for Config
Click to show internal directories.
Click to hide internal directories.