Uses of Class
migratedb.v1.core.api.configuration.FluentConfiguration
Packages that use FluentConfiguration
Package
Description
The main MigrateDB package and for most users, the only one they'll ever need to know about.
Interfaces for MigrateDB configuration
-
Uses of FluentConfiguration in migratedb.v1.core
Methods in migratedb.v1.core that return FluentConfigurationModifier and TypeMethodDescriptionstatic FluentConfigurationMigrateDb.configure()This is your starting point.static FluentConfigurationMigrateDb.configure(ClassLoader classLoader) This is your starting point. -
Uses of FluentConfiguration in migratedb.v1.core.api.configuration
Methods in migratedb.v1.core.api.configuration that return FluentConfigurationModifier and TypeMethodDescriptionDefaultConfiguration.asFluentConfiguration()FluentConfiguration.baselineDescription(String baselineDescription) Sets the description to tag an existing schema with when executing baseline.FluentConfiguration.baselineMigrationPrefix(String baselineMigrationPrefix) Sets the file name prefix for baseline migrations.FluentConfiguration.baselineOnMigrate(boolean baselineOnMigrate) Whether to automatically call baseline when migrate is executed against a non-empty schema with no schema history table.FluentConfiguration.baselineVersion(String baselineVersion) Sets the version to tag an existing schema with when executing baseline.FluentConfiguration.baselineVersion(Version baselineVersion) Sets the version to tag an existing schema with when executing baseline.Set the callbacks for lifecycle notifications.FluentConfiguration.callbacks(Collection<Callback> callbacks) Set the callbacks for lifecycle notifications.Set the callbacks for lifecycle notifications.FluentConfiguration.cherryPick(String... cherryPickAsString) Sets the migrations that MigrateDB should consider when migrating.FluentConfiguration.cherryPick(Collection<MigrationPattern> cherryPick) Sets the migrations that MigrateDB should consider when migrating.FluentConfiguration.cherryPick(MigrationPattern... cherryPick) Sets the migrations that MigrateDB should consider when migrating.FluentConfiguration.configuration(Map<String, String> props) Configures MigrateDB with these properties.FluentConfiguration.configuration(Properties properties) Configures MigrateDB with these properties.FluentConfiguration.configuration(Configuration configuration) Configure with the same values as this existing configuration.FluentConfiguration.connectRetries(int connectRetries) The maximum number of retries when attempting to connect to the database.FluentConfiguration.connectRetriesInterval(int connectRetriesInterval) The maximum time between retries when attempting to connect to the database in seconds.FluentConfiguration.createSchemas(boolean createSchemas) Whether MigrateDB should attempt to create the schemas specified in the schemas propertyFluentConfiguration.dataSource(DataSource dataSource) Sets the data source to use.FluentConfiguration.dataSource(ConnectionProvider dataSource) Sets the data source to use.FluentConfiguration.defaultSchema(String schema) Sets the default schema managed by MigrateDB.Sets the encoding of SQL migrations.Sets the encoding of SQL migrations.<T extends ExtensionConfig>
FluentConfigurationFluentConfiguration.extensionConfig(Class<T> extensionConfigType, T value) Sets the extension config of typeT.FluentConfiguration.failOnMissingLocations(boolean failOnMissingLocations) Whether to fail if a location specified in themigratedb.locationsoption doesn't existFluentConfiguration.group(boolean group) Whether to group all pending migrations together in the same transaction when applying them (only recommended for databases with support for DDL transactions).FluentConfiguration.ignoreFutureMigrations(boolean ignoreFutureMigrations) Whether to ignore future migrations when reading the schema history table.FluentConfiguration.ignoreIgnoredMigrations(boolean ignoreIgnoredMigrations) Ignore ignored migrations when reading the schema history table.FluentConfiguration.ignoreMigrationPatterns(Collection<ValidatePattern> ignoreMigrationPatterns) Ignore migrations that match this array of ValidatePatterns when validating migrations.FluentConfiguration.ignoreMigrationPatterns(ValidatePattern... ignoreMigrationPatterns) Ignore migrations that match this array of ValidatePatterns when validating migrations.FluentConfiguration.ignoreMigrationPatternsAsStrings(String... ignoreMigrationPatterns) Ignore migrations that match this list of patterns when validating migrations.FluentConfiguration.ignoreMigrationPatternsAsStrings(Collection<String> ignoreMigrationPatterns) Ignore migrations that match this list of patterns when validating migrations.FluentConfiguration.ignoreMissingMigrations(boolean ignoreMissingMigrations) Ignore missing migrations when reading the schema history table.FluentConfiguration.ignorePendingMigrations(boolean ignorePendingMigrations) Ignore pending migrations when reading the schema history table.The SQL statements to run to initialize a new database connection immediately after opening it.FluentConfiguration.installedBy(String installedBy) The username that will be recorded in the schema history table as having applied the migration.FluentConfiguration.javaMigrationClassProvider(ClassProvider<JavaMigration> javaMigrationClassProvider) Custom ClassProvider to be used to look upJavaMigrationclasses.FluentConfiguration.javaMigrations(Collection<JavaMigration> javaMigrations) The additional Java-based migrations.FluentConfiguration.javaMigrations(JavaMigration... javaMigrations) The additional Java-based migrations.FluentConfiguration.liberateOnMigrate(boolean liberateOnMigrate) Whether theliberatecommand is automatically executed onmigrateif the schema history table does not exist, butoldTableexists.Sets the locations to scan recursively for migrations.FluentConfiguration.locations(Collection<Location> locations) Sets the locations to scan recursively for migrations.Sets the locations to scan recursively for migrations.FluentConfiguration.lockRetryCount(int lockRetryCount) Sets the maximum number of retries when trying to obtain a lock. -1 indicates attempting to repeat indefinitely.The logger(s) MigrateDB should use.The logger MigrateDB should use.FluentConfiguration.mixed(boolean mixed) Whether to allow mixing transactional and non-transactional statements within the same migration.Sets the name of the old table to convert into the format used by MigrateDB.FluentConfiguration.outOfOrder(boolean outOfOrder) Allows migrations to be run "out of order".FluentConfiguration.outputQueryResults(boolean outputQueryResults) Whether MigrateDB should output a table with the results of queries when executing migrations.FluentConfiguration.placeholderPrefix(String placeholderPrefix) Sets the prefix of every placeholder.FluentConfiguration.placeholderReplacement(boolean placeholderReplacement) Sets whether placeholders should be replaced.FluentConfiguration.placeholders(Map<String, String> placeholders) Sets the placeholders to replace in SQL migration scripts.FluentConfiguration.placeholderSuffix(String placeholderSuffix) Sets the suffix of every placeholder.FluentConfiguration.repeatableSqlMigrationPrefix(String repeatableSqlMigrationPrefix) Sets the file name prefix for repeatable SQL migrations.Sets custom MigrationResolvers to be used in addition to the built-in ones for resolving Migrations to apply.FluentConfiguration.resolvers(Collection<MigrationResolver> resolvers) Sets custom MigrationResolvers to be used in addition to the built-in ones for resolving Migrations to apply.FluentConfiguration.resolvers(MigrationResolver... resolvers) Sets custom MigrationResolvers to be used in addition to the built-in ones for resolving Migrations to apply.FluentConfiguration.resourceProvider(ResourceProvider resourceProvider) Custom ResourceProvider to be used to look up resources.Sets the schemas managed by MigrateDB.FluentConfiguration.schemas(Collection<String> schemas) Sets the schemas managed by MigrateDB.FluentConfiguration.scriptPlaceholderPrefix(String scriptPlaceholderPrefix) Sets the prefix of every script placeholder.FluentConfiguration.scriptPlaceholderSuffix(String scriptPlaceholderSuffix) Sets the suffix of every script placeholder.FluentConfiguration.skipDefaultCallbacks(boolean skipDefaultCallbacks) Whether MigrateDB should skip the default callbacks.FluentConfiguration.skipDefaultResolvers(boolean skipDefaultResolvers) Whether MigrateDB should skip the default resolvers.FluentConfiguration.skipExecutingMigrations(boolean skipExecutingMigrations) Whether MigrateDB should skip actually executing the contents of the migrations and only update the schema history table.FluentConfiguration.sqlMigrationPrefix(String sqlMigrationPrefix) Sets the file name prefix for SQL migrations.FluentConfiguration.sqlMigrationSeparator(String sqlMigrationSeparator) Sets the file name separator for SQL migrations.FluentConfiguration.sqlMigrationSuffixes(String... sqlMigrationSuffixes) The file name suffixes for SQL migrations.FluentConfiguration.sqlMigrationSuffixes(Collection<String> sqlMigrationSuffixes) The file name suffixes for SQL migrations.Sets the name of the schema history table that will be used by MigrateDB.FluentConfiguration.tablespace(@Nullable String tablespace) Sets the tablespace where to create the schema history table that will be used by MigrateDB.Sets the target version up to which MigrateDB should consider migrations.FluentConfiguration.target(TargetVersion target) Sets the target version up to which MigrateDB should consider migrations.Sets the target version up to which MigrateDB should consider migrations.FluentConfiguration.useExtension(MigrateDbExtension extension) Enables a single MigrateDB extension.FluentConfiguration.useExtensions(Iterable<MigrateDbExtension> extensions) Enables multiple MigrateDB extensions.FluentConfiguration.validateMigrationNaming(boolean validateMigrationNaming) Whether to validate migrations and callbacks whose scripts do not obey the correct naming convention.FluentConfiguration.validateOnMigrate(boolean validateOnMigrate) Whether to automatically call validate or not when running migrate.