DataBridge Documentation 2.0.17
A Java library for managing database connections and transactions
|
Public Member Functions | |
CommandPrompt (Scheman scheman) | |
void | start () |
The CommandPrompt
class provides a command-line interface (CLI) for interacting with the database migration system. It allows users to execute commands for managing database migrations, such as running, rolling back, and listing migrations, as well as generating migration templates and clearing the console.
This class continuously prompts the user for input and executes the corresponding command until the user exits.
io.github.kdesp73.databridge.migration.CommandPrompt.CommandPrompt | ( | Scheman | scheman | ) |
Constructs a new CommandPrompt
with the specified Scheman
.
scheman | the Scheman object responsible for handling migrations. |
void io.github.kdesp73.databridge.migration.CommandPrompt.start | ( | ) |
Starts the command-line interface, continuously prompting the user for commands and executing the corresponding actions.
The following commands are available:
If the user enters an unknown command, a help message is displayed.