Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Postgres ¶
type Postgres struct { MigrationsDir string // relative path to migrations directory, leave empty when no migrations DB *sqlx.DB // contains filtered or unexported fields }
Postgres implements the AppService interface.
type PostgresConfig ¶
type PostgresConfig struct { // DSN contains the PGX data source name, e.;g. postgres://user:password@host:port/dbname?query // see also https://github.com/golang-migrate/migrate/tree/master/database/pgx DSN string `yaml:"dsn"` // Number of retries upon initial connect. Default is 5 times. Set -1 to disable ConnectMaxRetries int `yaml:"connectMaxRetries"` // Time between retries for initial connect attempts. Default is 5 seconds. ConnectRetryDuration time.Duration `yaml:"connectRetryDuration"` }
type PostgresMigratePrinter ¶
Click to show internal directories.
Click to hide internal directories.