Class TableQuery

java.lang.Object
com.github.darksoulq.abyssallib.common.database.relational.AbstractTableQuery<TableQuery>
com.github.darksoulq.abyssallib.common.database.relational.postgres.TableQuery

public class TableQuery extends AbstractTableQuery<TableQuery>
A PostgreSQL-specific implementation of AbstractTableQuery.

This class provides fluent API access for standard SQL queries on a specific table. Note that PostgreSQL does not support the REPLACE INTO syntax.

  • Constructor Details

    • TableQuery

      public TableQuery(Database database, String table)
      Constructs a new TableQuery for PostgreSQL.
      Parameters:
      database - The PostgreSQL Database instance.
      table - The name of the table to query.
  • Method Details

    • batch

      public BatchQuery batch(String... columns)
      Transitions this query into a batch operation.
      Parameters:
      columns - The names of the columns to include in the batch.
      Returns:
      A new BatchQuery instance.