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
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Build theWithDatabaseLoaded
extensionsetDatasourceExtension
(DatasourceExtension wDatasource) Allow to link theDatasourceExtension
with 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
DatasourceExtension
with theWithDatabaseLoaded
. The Flyway migrations was applied to theDataSource
created by this extension.This setter is mandatory.
- Parameters:
wDatasource
- The linkedDataSource
extension- Returns:
- The current builder
-
setMigrationsLocation
Allow to set the migrations location. To indicate Flyway where to found SQL files.
By default, the
WithDatabaseLoaded
usedb/migration/catalog
, where catalog was the schema given by theDataSource
contextThis 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
WithDatabaseLoaded
usedb/migration/catalog
, where catalog was the schema given by theDataSource
contextThis method was not compatible with
setMigrationsLocation(String)
- Returns:
- The current builder
-
build
Build theWithDatabaseLoaded
extension- Returns:
- The extension
-