setMaxSqlCacheSize method

Future<void> setMaxSqlCacheSize (int cacheSize)

Sets the maximum size of the prepared-statement cache for this database.

(Size of the cache = number of compiled-sql-statements stored in the cache.)

Maximum cache size can only be increased from its current size (default = 10). If this method is called with smaller size than the current maximum value, then an exception is thrown.

See: https://developer.android.com/reference/android/database/sqlite/SQLiteDatabase#setMaxSqlCacheSize(int)

Implementation

Future<void> setMaxSqlCacheSize(final int cacheSize) {
  final Map<String, dynamic> request = <String, dynamic>{
    'id': id,
    'cacheSize': cacheSize
  };
  return _channel.invokeMethod('setMaxSqlCacheSize', request);
}