Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { User string `koanf:"APP_POSTGRES_USER"` Password string `koanf:"APP_POSTGRES_PASSWORD"` Host string `koanf:"APP_POSTGRES_HOST"` Port string `koanf:"APP_POSTGRES_PORT"` DBName string `koanf:"APP_POSTGRES_DB_NAME"` Query string `koanf:"APP_POSTGRES_QUERY"` WithMigrate bool `koanf:"APP_POSTGRES_WITH_MIGRATION"` }
type Postgres ¶
type Postgres struct { Pool *pgxpool.Pool Builder squirrel.StatementBuilderType Migration *migrate.Migrate }
func (*Postgres) MigrateDown ¶
Click to show internal directories.
Click to hide internal directories.