Documentation ¶
Overview ¶
Common helpers for managing postgres database connections and migrations.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { User string Pass string DBName string Host string SSLMode string MaxConnections int }
Config contains data source name settings
type Migrator ¶
Migrator
func NewMigrator ¶
NewMigrator returns a new database migrator for the given connection using a file path for the migrations source
Click to show internal directories.
Click to hide internal directories.