Class QueryExecutor

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

public class QueryExecutor extends Object
A MariaDB-aware query bridge that handles statement execution and builder initialization.
  • Constructor Details

    • QueryExecutor

      public QueryExecutor(Database database)
      Constructs a QueryExecutor linked to a MariaDB database.
      Parameters:
      database - The Database instance.
  • Method Details

    • table

      public TableQuery table(String name)
      Initiates a query on a specific table.
      Parameters:
      name - The table name.
      Returns:
      A TableQuery instance.
    • create

      public TableBuilder create(String name)
      Initiates a table creation builder.
      Parameters:
      name - The table name.
      Returns:
      A TableBuilder instance.
    • executeRaw

      public void executeRaw(String sql) throws Exception
      Executes a raw SQL statement string.
      Parameters:
      sql - The SQL string.
      Throws:
      Exception - If execution fails.