deleteSync method

void deleteSync(
  1. Uint8List key
)

Deletes key. Deleting a missing key is allowed.

Inside a transaction the delete is buffered and applied at commit.

Implementation

void deleteSync(Uint8List key) {
  _checkWritable();
  _checkOpen();
  if (_txOps != null) {
    _record(WalOp.delete(key));
    return;
  }
  _wal.appendDeleteSync(key);
  _memtable.putTombstone(key);
  _afterWrite();
}