package
Version:
v0.0.0-...-20ba6f3
Opens a new window with list of versions in this module.
Published: May 20, 2021
License: MIT
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Db is the database object
Init Initializes a db connection
Migrate executes migrations once the db is connected
type Config struct {
User string `env:"DB_USER"`
Password string `env:"DB_PASSWORD"`
Port int64 `env:"DB_PORT" envDefault:"5432"`
Host string `env:"DB_HOST"`
Name string `env:"DB_NAME"`
}
Config is the structure used to load db credentials from the environment.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.