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
// Only for Postgres
Schema string
}
Config Used in config/database.go
type ConfigBuilder ¶
type ConfigBuilder interface {
Reads() []FullConfig
Writes() []FullConfig
}
type Driver ¶
type Driver string
const ( DriverArray Driver = "array" DriverAztables Driver = "aztables" DriverCSVDB Driver = "csvdb" DriverJSONDB Driver = "jsondb" DriverXMLDB Driver = "xmldb" DriverGODB Driver = "godb" DriverMysql Driver = "mysql" DriverOracle Driver = "oracle" DriverPostgres Driver = "postgres" DriverSqlite Driver = "sqlite" DriverSqlserver Driver = "sqlserver" DriverTurso Driver = "turso" )
type FullConfig ¶
type FullConfig struct {
Config
Driver Driver
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.