Package org.ehrbase.cli.cmd
Class CliDataBaseCommand
java.lang.Object
org.ehrbase.cli.cmd.CliCommand
org.ehrbase.cli.cmd.CliDataBaseCommand
-
Nested Class Summary
Nested classes/interfaces inherited from class org.ehrbase.cli.cmd.CliCommand
CliCommand.CliArgument, CliCommand.Result -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final DataSourceprotected final org.flywaydb.core.Flywayprotected final MigrationStrategyConfigFields inherited from class org.ehrbase.cli.cmd.CliCommand
name -
Constructor Summary
ConstructorsConstructorDescriptionCliDataBaseCommand(DataSource dataSource, org.flywaydb.core.Flyway flyway, MigrationStrategyConfig migrationStrategyConfig) -
Method Summary
Modifier and TypeMethodDescriptionprotected CliCommand.Resultprotected CliCommand.ResultexecuteMigration(MigrationStrategy migrationStrategy) protected StringjdbUrl()protected voidvoidMethods inherited from class org.ehrbase.cli.cmd.CliCommand
consumeArgs, exitFail, getName, println, printStep
-
Field Details
-
dataSource
-
flyway
protected final org.flywaydb.core.Flyway flyway -
migrationStrategyConfig
-
-
Constructor Details
-
CliDataBaseCommand
public CliDataBaseCommand(DataSource dataSource, org.flywaydb.core.Flyway flyway, MigrationStrategyConfig migrationStrategyConfig)
-
-
Method Details
-
run
- Specified by:
runin classCliCommand- Throws:
Exception
-
executeCheckConnection
-
executeMigration
-
jdbUrl
-
printUsage
protected void printUsage()- Specified by:
printUsagein classCliCommand
-