writeTransaction<T> abstract method

Future<T> writeTransaction<T>(
  1. Future<T> callback(
    1. SqliteWriteContext tx
    ), {
  2. Duration? lockTimeout,
  3. bool? flush,
})
override

Same as SqliteConnection.writeTransaction.

Has an additional flush (defaults to true). This can be set to false to delay flushing changes to the database file, losing durability guarantees. This only has an effect when IndexedDB storage is used.

See flush for details.

Implementation

Future<T> writeTransaction<T>(
    Future<T> Function(SqliteWriteContext tx) callback,
    {Duration? lockTimeout,
    bool? flush});