setFetchArraySize method

Future<void> setFetchArraySize(
  1. int arraySize
)

Set array size for fetching

Controls how many rows are fetched at once from the database. Larger values can improve performance for large result sets.

Implementation

Future<void> setFetchArraySize(int arraySize) async {
  if (_disposed) {
    throw OracleStatementException('Statement has been closed', sql: _sql);
  }

  final result = _dpiOracle.dpiStmt_setFetchArraySize(
    _statementPtr.value,
    arraySize,
  );

  if (result == DPI_FAILURE) {
    throw OracleStatementException(
      'Failed to set fetch array size',
      sql: _sql,
    );
  }
}