Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Database ¶
type Database struct { Port string `env:"PG_PORT,default=5432"` User string `env:"PG_USER,required"` Password string `env:"PG_PASSWORD,required"` Server string `env:"PG_HOST,required"` Name string `env:"PG_DATABASE,required"` Params string `env:"PG_PARAMS,default=sslmode=disable"` ConnMaxLifeTimeSeconds int MaxOpenConnections int LockTimeoutSeconds int StatementTimeoutSeconds int }
func (*Database) Dialect ¶
Dialect returns sql-dialect as string.
Click to show internal directories.
Click to hide internal directories.