Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
Host string
Port string
User string
Password string
Database string
MigrationPath string
}
Config holds all values used to configure and connect to a postgres db.
func (*Config) ConnectAndMigrate ¶
ConnectAndMigrate establishes a connection to the database based on the configuration provided. Additionally it performs a data migration to ensure that the schema is on the latest version.
Click to show internal directories.
Click to hide internal directories.