loadBaseRows method
Populate the version store from base rows returned by the page layer. All loaded rows are assigned txnId = 0 (pre-MVCC; always visible).
Implementation
void loadBaseRows(List<Map<String, dynamic>> baseRows) {
_chains.clear();
_nextRowId = 1;
for (final r in baseRows) {
final id = r['id'] as int? ?? _nextRowId;
final version = MvccRowVersion(
rowId: id,
values: Map<String, dynamic>.from(r),
createdByTxn: 0, // pre-MVCC sentinel
);
_chains[id] = MvccVersionChain(version);
if (id >= _nextRowId) _nextRowId = id + 1;
}
}