bulkInsertParallel method

Future<int> bulkInsertParallel(
  1. int poolId,
  2. String table,
  3. List<String> columns,
  4. Uint8List dataBuffer,
  5. int parallelism,
)

Performs parallel bulk insert on poolId. Returns rows inserted, or negative value on error.

Implementation

Future<int> bulkInsertParallel(
  int poolId,
  String table,
  List<String> columns,
  Uint8List dataBuffer,
  int parallelism,
) async {
  final r = await _sendRequest<IntResponse>(
    BulkInsertParallelRequest(
      _nextRequestId(),
      poolId,
      table,
      columns,
      dataBuffer,
      parallelism,
    ),
  );
  return r.value;
}