Package io.quarkus.liquibase.runtime
Class LiquibaseDataSourceRuntimeConfig
- java.lang.Object
-
- io.quarkus.liquibase.runtime.LiquibaseDataSourceRuntimeConfig
-
public final class LiquibaseDataSourceRuntimeConfig extends Object
The liquibase data source runtime time configuration
-
-
Field Summary
Fields Modifier and Type Field Description Map<String,String>changeLogParametersMap of parameters that can be used inside Liquibase changeLog files.booleancleanAtStarttrueto execute Liquibase clean command automatically when the application starts,falseotherwise.Optional<List<String>>contextsComma-separated case-sensitive list of ChangeSet contexts to execute for liquibase.Optional<String>databaseChangeLogLockTableNameThe liquibase change log lock table name.Optional<String>databaseChangeLogTableNameThe liquibase change log table name.(package private) static StringDEFAULT_LOCK_TABLEThe default liquibase lock table(package private) static StringDEFAULT_LOG_TABLEThe default liquibase log tableOptional<String>defaultCatalogNameThe name of Liquibase's default catalog.Optional<String>defaultSchemaNameThe name of Liquibase's default schema.Optional<List<String>>labelsComma-separated case-sensitive list of expressions defining labeled ChangeSet to execute for liquibase.Optional<String>liquibaseCatalogNameThe name of the catalog with the liquibase tables.Optional<String>liquibaseSchemaNameThe name of the schema with the liquibase tables.Optional<String>liquibaseTablespaceNameThe name of the tablespace where the -LOG and -LOCK tables will be created (if they do not exist yet).booleanmigrateAtStarttrueto execute Liquibase automatically when the application starts,falseotherwise.booleanvalidateOnMigratetrueto validate the applied changes against the available ones,falseotherwise.
-
Constructor Summary
Constructors Constructor Description LiquibaseDataSourceRuntimeConfig()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static LiquibaseDataSourceRuntimeConfigdefaultConfig()Creates aLiquibaseDataSourceRuntimeConfigwith default settings.
-
-
-
Field Detail
-
DEFAULT_LOCK_TABLE
static final String DEFAULT_LOCK_TABLE
The default liquibase lock table- See Also:
- Constant Field Values
-
DEFAULT_LOG_TABLE
static final String DEFAULT_LOG_TABLE
The default liquibase log table- See Also:
- Constant Field Values
-
migrateAtStart
@ConfigItem public boolean migrateAtStart
trueto execute Liquibase automatically when the application starts,falseotherwise.
-
validateOnMigrate
@ConfigItem(defaultValue="true") public boolean validateOnMigrate
trueto validate the applied changes against the available ones,falseotherwise. It is only used ifmigration-at-startistrue
-
cleanAtStart
@ConfigItem public boolean cleanAtStart
trueto execute Liquibase clean command automatically when the application starts,falseotherwise.
-
contexts
@ConfigItem public Optional<List<String>> contexts
Comma-separated case-sensitive list of ChangeSet contexts to execute for liquibase.
-
labels
@ConfigItem public Optional<List<String>> labels
Comma-separated case-sensitive list of expressions defining labeled ChangeSet to execute for liquibase.
-
changeLogParameters
@ConfigItem public Map<String,String> changeLogParameters
Map of parameters that can be used inside Liquibase changeLog files.
-
databaseChangeLogLockTableName
@ConfigItem(defaultValue="DATABASECHANGELOGLOCK") public Optional<String> databaseChangeLogLockTableName
The liquibase change log lock table name. Name of table to use for tracking concurrent Liquibase usage.
-
databaseChangeLogTableName
@ConfigItem(defaultValue="DATABASECHANGELOG") public Optional<String> databaseChangeLogTableName
The liquibase change log table name. Name of table to use for tracking change history.
-
defaultCatalogName
@ConfigItem public Optional<String> defaultCatalogName
The name of Liquibase's default catalog.
-
defaultSchemaName
@ConfigItem public Optional<String> defaultSchemaName
The name of Liquibase's default schema. Overwrites the default schema name (returned by the RDBMS) with a different database schema.
-
liquibaseCatalogName
@ConfigItem public Optional<String> liquibaseCatalogName
The name of the catalog with the liquibase tables.
-
liquibaseSchemaName
@ConfigItem public Optional<String> liquibaseSchemaName
The name of the schema with the liquibase tables.
-
liquibaseTablespaceName
@ConfigItem public Optional<String> liquibaseTablespaceName
The name of the tablespace where the -LOG and -LOCK tables will be created (if they do not exist yet).
-
-
Method Detail
-
defaultConfig
public static final LiquibaseDataSourceRuntimeConfig defaultConfig()
Creates aLiquibaseDataSourceRuntimeConfigwith default settings.- Returns:
LiquibaseDataSourceRuntimeConfig
-
-