package
Version:
v0.0.0-...-b73fbf5
Opens a new window with list of versions in this module.
Published: Dec 16, 2020
License: MIT
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Connect initializes a connnection to the database thanks to a config object
MakeMigrations load sata structure on db
type Config struct {
DbUser string `env:"DB_USER"`
DbPassword string `env:"DB_PASSWORD"`
DbPort int `env:"DB_PORT" envDefault:"5432"`
DbHost string `env:"DB_HOST"`
DbName string `env:"DB_NAME"`
}
Config represents the database configuration
Source Files
¶
Click to show internal directories.
Click to hide internal directories.