Class QueriesBatchCallable

java.lang.Object
org.pgcodekeeper.core.callable.StatementCallable<String>
org.pgcodekeeper.core.callable.QueriesBatchCallable
All Implemented Interfaces:
Callable<String>

public class QueriesBatchCallable extends StatementCallable<String>
Executable callable for processing batches of SQL queries with progress monitoring and error reporting. Handles database-specific batch execution for PostgreSQL, ClickHouse, and Microsoft SQL databases. Provides detailed error reporting with position information and supports both single statements and batch operations.
  • Constructor Details

    • QueriesBatchCallable

      public QueriesBatchCallable(Statement st, List<ObjectLocation> batches, IMonitor monitor, IProgressReporter reporter, Connection connection, String batchDelimiter)
      Creates a new queries batch callable with the specified parameters.
      Parameters:
      st - the SQL statement to execute
      batches - list of SQL query locations to process in batch
      monitor - progress monitor for tracking execution progress
      reporter - progress reporter for writing execution results and errors
      connection - database connection for batch operations
      batchDelimiter - batch delimiter for split
  • Method Details