Class QueryExecutor

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

public class QueryExecutor extends Object
A utility class to facilitate the creation of MySQL table builders and queries.
  • Constructor Details

    • QueryExecutor

      public QueryExecutor(Database database)
      Parameters:
      database - The Database manager to use for connections.
  • Method Details

    • table

      public TableQuery table(String name)
      Creates a query builder for a table.
      Parameters:
      name - The table name.
      Returns:
      A TableQuery instance.
    • create

      public TableBuilder create(String name)
      Creates 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.
      Parameters:
      sql - The SQL string.
      Throws:
      Exception - If execution fails.