enableWriteAheadLogging method

Future<bool> enableWriteAheadLogging ()

This method enables parallel execution of queries from multiple threads on the same database.

Returns true if write-ahead logging is enabled.

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

Implementation

Future<bool> enableWriteAheadLogging() async {
  final Map<String, dynamic> request = <String, dynamic>{'id': id};
  return await _channel.invokeMethod('enableWriteAheadLogging', request);
}