Package fr.ght1pc9kc.testy.jooq
Class WithDatabaseLoaded.WithDatabaseLoadedBuilder
java.lang.Object
fr.ght1pc9kc.testy.jooq.WithDatabaseLoaded.WithDatabaseLoadedBuilder
- Enclosing class:
WithDatabaseLoaded
Builder for
WithDatabaseLoaded-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Build theWithDatabaseLoadedextensionsetDatasourceExtension(DatasourceExtension wDatasource) Allow to link theDatasourceExtensionwith theWithDatabaseLoaded.setMigrationsLocation(String location) Allow to set the migrations location.Use the Flyway default migrations location instead a migration with catalog name.
-
Constructor Details
-
WithDatabaseLoadedBuilder
public WithDatabaseLoadedBuilder()
-
-
Method Details
-
setDatasourceExtension
public WithDatabaseLoaded.WithDatabaseLoadedBuilder setDatasourceExtension(DatasourceExtension wDatasource) Allow to link the
DatasourceExtensionwith theWithDatabaseLoaded. The Flyway migrations was applied to theDataSourcecreated by this extension.This setter is mandatory.
- Parameters:
wDatasource- The linkedDataSourceextension- Returns:
- The current builder
-
setMigrationsLocation
Allow to set the migrations location. To indicate Flyway where to found SQL files.
By default, the
WithDatabaseLoadedusedb/migration/catalog, where catalog was the schema given by theDataSourcecontextThis method was not compatible with
useFlywayDefaultLocation()- Parameters:
location- The migration files location.- Returns:
- The current builder
-
useFlywayDefaultLocation
Use the Flyway default migrations location instead a migration with catalog name.
By default, the
WithDatabaseLoadedusedb/migration/catalog, where catalog was the schema given by theDataSourcecontextThis method was not compatible with
setMigrationsLocation(String)- Returns:
- The current builder
-
build
Build theWithDatabaseLoadedextension- Returns:
- The extension
-