mirror of
https://github.com/aljazceru/turso.git
synced 2025-12-27 21:14:21 +01:00
For example, implementing `SELECT DISTINCT` (#1517) and `UNION` (#1545) require that we are able to create indexes without a rowid column present. Similarly, `WITHOUT ROWID` tables require this. I implemented this by replacing the `rowid` and `empty_record` properties in `BtreeCursor` with ```rust /// Whether the cursor is currently pointing to a record. #[derive(Debug, Clone, Copy, PartialEq)] enum CursorHasRecord { Yes { rowid: Option<u64>, // not all indexes and btrees have rowids, so this is optional. }, No, } ``` Reviewed-by: Pere Diaz Bou <pere-altea@homail.com> Closes #1518