Class DatabaseInspector

java.lang.Object
io.quarkus.agroal.runtime.dev.ui.DatabaseInspector

public final class DatabaseInspector extends Object
  • Field Details

    • agroalDataSourceSupports

      @Inject jakarta.enterprise.inject.Instance<io.quarkus.agroal.runtime.AgroalDataSourceSupport> agroalDataSourceSupports
    • assistant

      @Inject Optional<io.quarkus.assistant.runtime.dev.Assistant> assistant
  • Constructor Details

    • DatabaseInspector

      public DatabaseInspector()
  • Method Details

    • init

      @PostConstruct protected void init()
    • getDataSources

      @JsonRpcDescription("Get all available datasources for the Database") @DevMCPEnableByDefault public List<io.quarkus.agroal.runtime.dev.ui.DatabaseInspector.Datasource> getDataSources()
    • getTables

      @JsonRpcDescription("Get all the tables for a certain datasource") @DevMCPEnableByDefault public List<io.quarkus.agroal.runtime.dev.ui.DatabaseInspector.Table> getTables(@JsonRpcDescription("Datasource name") String datasource)
    • generateDot

      @JsonRpcDescription("Generate an ER Diagram in dot (graphviz) format for a certain datasource") public String generateDot(@JsonRpcDescription("Datasource name") String datasource)
    • executeSQL

      @JsonRpcDescription("Execute SQL against a certain datasource") @DevMCPEnableByDefault public io.quarkus.agroal.runtime.dev.ui.DatabaseInspector.DataSet executeSQL(@JsonRpcDescription("Datasource name") String datasource, @JsonRpcDescription("Valid SQL to execute") String sql, @JsonRpcDescription("Page number for pagable rusults, starting at 1") Integer pageNumber, @JsonRpcDescription("Number of rows in a page, example 10") Integer pageSize)
    • getInsertScript

      @JsonRpcDescription("Get the import.sql script for a certain datasource") public String getInsertScript(@JsonRpcDescription("Datasource name") String datasource)
    • generateTableData

      public CompletionStage<Map<String,String>> generateTableData(String datasource, String schema, String name, int rowCount)
    • englishToSQL

      public CompletionStage<Map<String,String>> englishToSQL(String datasource, String schema, String name, String english)