Class MigrationsRPCService
java.lang.Object
ac.simons.neo4j.migrations.quarkus.runtime.MigrationsRPCService
A service delegating to an instance of
migrations for various tasks
in the dev-ui.- Author:
- Michael J. Simons
-
Constructor Details
-
MigrationsRPCService
@Inject public MigrationsRPCService(ac.simons.neo4j.migrations.core.Migrations migrations)
-
-
Method Details
-
getLabel
-
getConnectionDetails
@JsonRpcDescription("Returns the server-address and -version against which Neo4j-Migrations is connected and the databases being used.") @DevMCPEnableByDefault public io.vertx.core.json.JsonObject getConnectionDetails() -
getAllMigrations
@JsonRpcDescription("Returns a list of all migrations that are known to this instance, including their status.") @DevMCPEnableByDefault public io.vertx.core.json.JsonArray getAllMigrations() -
migrate
@JsonRpcDescription("Applies all pending migrations to the target database and returns the status of the database afterwards.") @DevMCPEnableByDefault public io.vertx.core.json.JsonObject migrate() -
clean
@JsonRpcDescription("Cleans all applied migrations from the schema database (This won't affect any user data, but only the recorded chain of applied migrations).") public io.vertx.core.json.JsonObject clean()
-