Package io.mats3.matssocket.impl
Class ClusterStoreAndForward_SQL_DbMigrations
java.lang.Object
io.mats3.matssocket.impl.ClusterStoreAndForward_SQL_DbMigrations
Perform the DB-setup/migrations that
ClusterStoreAndForward_SQL
needs, using Flyway. These needs to be
run before the CSAF_SQL is booted up.-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Defines the String and Binary datatypes for some databases. -
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
migrateUsingFlyway
(DataSource dataSource) Perform migrations using Flyway, getting the placeholder (interpolated values for "texttype" and "binarytype") fromgetPlaceHolders()
, and the migration scrips fromgetMigrationsLocation()
.void
void
setTextAndBinaryTypes
(String textType, String binaryType)
-
Field Details
-
_textType
-
_binaryType
-
-
Constructor Details
-
ClusterStoreAndForward_SQL_DbMigrations
protected ClusterStoreAndForward_SQL_DbMigrations()
-
-
Method Details
-
create
public static ClusterStoreAndForward_SQL_DbMigrations create(ClusterStoreAndForward_SQL_DbMigrations.Database database) -
create
-
setTextAndBinaryTypes
-
setTextAndBinaryTypes
-
getPlaceHolders
- Returns:
- the placeholders key-value pairs for the two placeholders needed for the migration scripts, "texttype" and "binarytype".
-
getMigrationsLocation
- Returns:
- the classpath location of the migrations scripts, note that you need two placeholders in these
scripts ("texttype" and "binarytype"), gotten by
getPlaceHolders()
.
-
migrateUsingFlyway
Perform migrations using Flyway, getting the placeholder (interpolated values for "texttype" and "binarytype") fromgetPlaceHolders()
, and the migration scrips fromgetMigrationsLocation()
.
-