Skip to main content

nanobus.migrate.postgres/v1

Description​

DatabaseSource code

This component offers database migrations for Postgres using the golang-migrate/migrate library. It reads migrations from sources (.sql files with DDL) and applies them in correct order to a database.

Options​

name​

name *​string

Name of the SQL driver to open.

dataSource​

dataSource *​string

The data source connection string.

directory​

directory​string

The directory to use for migration sources.

sourceUrl​

sourceUrl​string

The directory to use for migration sources.

migrationsTable​

migrationsTable​string

migrationsTableQuoted​

migrationsTableQuoted *​bool

multiStatementEnabled​

multiStatementEnabled *​bool

databaseName​

databaseName​string

schemaName​

schemaName​string

statementTimeout​

statementTimeout​Duration

multiStatementMaxSize​

multiStatementMaxSize​i32