Class QueryExecutor

java.lang.Object
com.github.darksoulq.abyssallib.common.database.relational.sql.QueryExecutor

public class QueryExecutor extends Object
A bridge class used to spawn table builders and queries. This class simplifies access to table-specific operations using the provided connection and pool.
  • Constructor Details

  • Method Details

    • table

      public TableQuery table(String name)
      Starts a fluent query builder for a specific table.
      Parameters:
      name - The name of the table to query.
      Returns:
      A new TableQuery instance.
    • create

      public TableBuilder create(String name)
      Starts a fluent table builder to define a new schema.
      Parameters:
      name - The name of the table to create.
      Returns:
      A new TableBuilder instance.
    • executeRaw

      public void executeRaw(String sql) throws Exception
      Executes a raw SQL string that does not require a result set.
      Parameters:
      sql - The raw SQL statement to execute.
      Throws:
      Exception - If a database access error occurs.