upsertCachedRow method

Future<void> upsertCachedRow({
  1. required String accountKey,
  2. required String tableId,
  3. required String rowKey,
  4. required String valuesJson,
})

Implementation

Future<void> upsertCachedRow({
  required String accountKey,
  required String tableId,
  required String rowKey,
  required String valuesJson,
}) {
  return database
      .into(_tables.kalamCachedRows)
      .insertOnConflictUpdate(
        KalamCachedRowsCompanion.insert(
          accountKey: accountKey,
          tableId: tableId,
          rowKey: rowKey,
          valuesJson: valuesJson,
          updatedAt: _clock(),
        ),
      );
}