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

directorystring

The directory to use for migration sources.

sourceUrl

sourceUrlstring

The directory to use for migration sources.

migrationsTable

migrationsTablestring

migrationsTableQuoted

migrationsTableQuoted *bool

multiStatementEnabled

multiStatementEnabled *bool

databaseName

databaseNamestring

schemaName

schemaNamestring

statementTimeout

statementTimeoutDuration

multiStatementMaxSize

multiStatementMaxSizei32