Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DBConnect ¶
DBConnect initializes connection to postgresql database. github.com/jmoiron/sqlx used to to get work with database. Function tries to ping database and apply migrations using github.com/golang-migrate/migrate. If migrations applying failed database goes to dirty state and requires manual conflict resolution.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.