Class QueriesBatchCallable
java.lang.Object
org.pgcodekeeper.core.loader.callables.StatementCallable<String>
org.pgcodekeeper.core.loader.callables.QueriesBatchCallable
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 Summary
ConstructorsConstructorDescriptionQueriesBatchCallable(Statement st, List<PgObjLocation> batches, IMonitor monitor, IProgressReporter reporter, Connection connection, DatabaseType dbType) Creates a new queries batch callable with the specified parameters. -
Method Summary
Methods inherited from class org.pgcodekeeper.core.loader.callables.StatementCallable
cancel
-
Constructor Details
-
QueriesBatchCallable
public QueriesBatchCallable(Statement st, List<PgObjLocation> batches, IMonitor monitor, IProgressReporter reporter, Connection connection, DatabaseType dbType) Creates a new queries batch callable with the specified parameters.- Parameters:
st- the SQL statement to executebatches- list of SQL query locations to process in batchmonitor- progress monitor for tracking execution progressreporter- progress reporter for writing execution results and errorsconnection- database connection for batch operationsdbType- database type to determine execution strategy
-
-
Method Details
-
call
- Throws:
Exception
-