Uses of Class
org.flywaydb.core.api.configuration.FluentConfiguration
Packages that use FluentConfiguration
Package
Description
The main Flyway package and for most users, the only one they'll ever need to know about.
Interfaces for Flyway configuration injection.
-
Uses of FluentConfiguration in org.flywaydb.core
Methods in org.flywaydb.core that return FluentConfigurationModifier and TypeMethodDescriptionstatic FluentConfigurationFlyway.configure()This is your starting point.static FluentConfigurationFlyway.configure(ClassLoader classLoader) This is your starting point. -
Uses of FluentConfiguration in org.flywaydb.core.api.configuration
Methods in org.flywaydb.core.api.configuration that return FluentConfigurationModifier and TypeMethodDescriptionFluentConfiguration.allEnvironments(Map<String, org.flywaydb.core.internal.configuration.models.EnvironmentModel> environments) FluentConfiguration.baselineDescription(String baselineDescription) Sets the description to tag an existing schema with when executing baseline.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(MigrationVersion baselineVersion) Sets the version to tag an existing schema with when executing baseline.FluentConfiguration.batch(boolean batch) Whether to batch SQL statements when executing them.FluentConfiguration.callbackLocations(String... callbackLocations) Sets the locations to scan recursively for callbacks.FluentConfiguration.callbackLocations(Location... callbackLocations) Sets the locations to scan recursively for callbacks.Set the callbacks for lifecycle notifications.Set the callbacks for lifecycle notifications.FluentConfiguration.cleanDisabled(boolean cleanDisabled) Whether to disable clean.FluentConfiguration.cleanOnValidationError(boolean cleanOnValidationError) Whether to automatically call clean or not when a validation error occurs.FluentConfiguration.clearCachedResolvedEnvironment(String environmentName) FluentConfiguration.communityDBSupportEnabled(boolean communityDBSupportEnabled) Whether to disable community database support.FluentConfiguration.configuration(Map<String, String> props) Configures Flyway with these properties.FluentConfiguration.configuration(Properties properties) Configures Flyway 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 Flyway should attempt to create the schemas specified in the schemas propertyFluentConfiguration.dataSource(String url, String user, String password) Sets the datasource to use.FluentConfiguration.dataSource(DataSource dataSource) Sets the datasource to use.FluentConfiguration.defaultSchema(String schema) Sets the default schema managed by Flyway.FluentConfiguration.detectEncoding(boolean detectEncoding) Whether Flyway should try to automatically detect SQL migration file encodingSets the JDBC driver to use.FluentConfiguration.dryRunOutput(File dryRunOutput) Sets the file where to output the SQL statements of a migration dry run.FluentConfiguration.dryRunOutput(OutputStream dryRunOutput) Sets the stream where to output the SQL statements of a migration dry run.FluentConfiguration.dryRunOutput(String dryRunOutputFileName) Sets the file where to output the SQL statements of a migration dry run.Sets the encoding of SQL migrations.Sets the encoding of SQL migrations.FluentConfiguration.environment(String environment) FluentConfiguration.environmentProvisionMode(org.flywaydb.core.internal.configuration.resolvers.ProvisionerMode mode) FluentConfiguration.envVars()Configures Flyway using FLYWAY_* environment variables.FluentConfiguration.errorOverrides(String... errorOverrides) Rules for the built-in error handler that let you override specific SQL states and errors codes in order to force specific errors or warnings to be treated as debug messages, info messages, warnings or errors.FluentConfiguration.executeInTransaction(boolean executeInTransaction) Sets whether SQL should be executed within a transaction.FluentConfiguration.failOnMissingLocations(boolean failOnMissingLocations) Whether to fail if a location specified in the flyway.locations option 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.ignoreMigrationPatterns(String... ignoreMigrationPatterns) Ignore migrations that match this comma-separated list of patterns when validating migrations.FluentConfiguration.ignoreMigrationPatterns(ValidatePattern... ignoreMigrationPatterns) Ignore migrations that match this array of ValidatePatterns when validating migrations.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(JavaMigration... javaMigrations) The manually added Java-based migrations.FluentConfiguration.jdbcProperties(Map<String, String> jdbcProperties) Properties to pass to the JDBC driver objectFluentConfiguration.kerberosConfigFile(String kerberosConfigFile) When connecting to a Kerberos service to authenticate, the path to the Kerberos config file.FluentConfiguration.loadDefaultConfigurationFiles()Load configuration files from the default locations: $installationDir$/conf/flyway.conf $user.home$/flyway.conf $workingDirectory$/flyway.conf The configuration files must be encoded with UTF-8.FluentConfiguration.loadDefaultConfigurationFiles(String encoding) Load configuration files from the default locations: $installationDir$/conf/flyway.conf $user.home$/flyway.conf $workingDirectory$/flyway.confSets the locations to scan recursively for migrations.Sets the locations to scan recursively for migrations.FluentConfiguration.lockRetryCount(int lockRetryCount) The loggers Flyway should use.FluentConfiguration.mixed(boolean mixed) Whether to allow mixing transactional and non-transactional statements within the same migration.FluentConfiguration.outOfOrder(boolean outOfOrder) Allows migrations to be run "out of order".FluentConfiguration.outputQueryResults(boolean outputQueryResults) Whether Flyway 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.placeholderSeparator(String placeholderSeparator) Sets the separator of default placeholders.FluentConfiguration.placeholderSuffix(String placeholderSuffix) Sets the suffix of every placeholder.FluentConfiguration.powershellExecutable(String powershellExecutable) Sets the PowerShell executable used for running PowerShell scripts.FluentConfiguration.provisionMode(org.flywaydb.core.internal.configuration.resolvers.ProvisionerMode mode) FluentConfiguration.repeatableSqlMigrationPrefix(String repeatableSqlMigrationPrefix) Sets the file name prefix for repeatable sql migrations.FluentConfiguration.reportFilename(String reportFilename) 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 Flyway.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 Flyway should skip the default callbacks.FluentConfiguration.skipDefaultResolvers(boolean skipDefaultResolvers) Whether Flyway should skip the default resolvers.FluentConfiguration.skipExecutingMigrations(boolean skipExecutingMigrations) Whether Flyway 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.stream(boolean stream) Whether to stream SQL migrations when executing them.Sets the name of the schema history table that will be used by Flyway.FluentConfiguration.tablespace(String tablespace) Sets the tablespace where to create the schema history table that will be used by Flyway.Sets the target version up to which Flyway should consider migrations.FluentConfiguration.target(MigrationVersion target) Sets the target version up to which Flyway should consider migrations.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.FluentConfiguration.workingDirectory(String workingDirectory)