Documentation
¶
Index ¶
Constants ¶
View Source
const Name = "postgres"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Enable bool `env:"POSTGRES_ENABLE" default:"false" yaml:"enable"`
Uri string `env:"POSTGRES_URI" default:"postgres://postgres:postgres@localhost:5432/postgres?sslmode=disable" yaml:"uri"`
DatabaseName string `env:"POSTGRES_DATABASE_NAME" default:"" yaml:"databaseName"`
MigrationsPath string `env:"POSTGRES_MIGRATIONS_PATH" default:"/migrations" yaml:"migrationsPath"`
}
type GolangMigrator ¶
type GolangMigrator struct {
// contains filtered or unexported fields
}
func NewGolangMigrator ¶
func NewGolangMigrator(logger *logrus.Entry, migrationsTable string) *GolangMigrator
func (*GolangMigrator) PerformMigrations ¶
Click to show internal directories.
Click to hide internal directories.