Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Connect ¶ added in v0.9.3
func Connect(cfg DatabaseConfig) (model.Driver, error)
Connect connects to the database.
func OpenDialect ¶ added in v0.9.3
OpenDialect opens a database driver.
Types ¶
type DatabaseConfig ¶ added in v0.9.3
DatabaseConfig is the configuration for the database.
func LoadConfig ¶ added in v0.9.3
func LoadConfig(env *utils.Environ, defaultDSN string) DatabaseConfig
LoadConfig loads the database configuration from the environment.
Click to show internal directories.
Click to hide internal directories.