getStmtCacheSize method

int getStmtCacheSize()

Get statement cache size

Implementation

int getStmtCacheSize() {
  _ensureNotDisposed();

  final cacheSize = _memoryManager.allocate<Uint32>(sizeOf<Uint32>());

  final result = _dpiOracle.dpiPool_getStmtCacheSize(_poolPtr.value, cacheSize);

  if (result == DPI_FAILURE) {
    throw OraclePoolException('Failed to get statement cache size');
  }

  return cacheSize.value;
}