package
Version:
v0.0.0-...-7a61ab1
Opens a new window with list of versions in this module.
Published: Oct 12, 2020
License: MIT
Opens a new window with license information.
Imports: 6
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 executes the sql migration files
type Config struct {
DbUser string `env:"DB_USER"`
DbPassword string `env:"DB_PASSWORD"`
DbHost string `env:"DB_HOST"`
DbPort int `env:"DB_PORT" envDefault:"5432"`
DbName string `env:"DB_NAME"`
}
Config represents the database configuration
Source Files
¶
Click to show internal directories.
Click to hide internal directories.