appendInsert method

Future<int> appendInsert({
  1. required int txnId,
  2. required int tableId,
  3. required int rowId,
  4. required Uint8List afterImage,
})

Implementation

Future<int> appendInsert({
  required int txnId,
  required int tableId,
  required int rowId,
  required Uint8List afterImage,
}) async {
  _currentTxnId = txnId;
  return append((lsn, prev) => WalBinRecord(
    lsn: lsn, txnId: txnId, prevLsn: prev,
    op: WalBinOp.insert, flags: 0x02,
    tableId: tableId, rowId: rowId,
    afterImage: afterImage,
  ));
}