clearNonOptimisticRows method
Implementation
void clearNonOptimisticRows(String tableName) {
final table = _cache.getTableByName(tableName);
if (table == null) return;
if (!table.hasPrimaryKey) {
table.clearUntaggedNoPkRows();
return;
}
final optimisticPKs = optimisticPrimaryKeysForTable(tableName);
if (optimisticPKs.isEmpty) {
table.clear();
} else {
table.removeRowsWhere((pk) => !optimisticPKs.contains(pk));
}
}