pub const FORMAT_VERSION: u16 = 3;Expand description
On-disk format revision. Bump when the page layout changes incompatibly.
History:
- Version 1 (Phases 2 / 3a / 3b): schema catalog and table data were opaque bincode blobs chained across typed payload pages.
- Version 2 (Phases 3c / 3d): tables are stored as cell-based B-Trees;
the schema catalog is itself a table called
sqlrite_masterwith four columns(name, sql, rootpage, last_rowid). - Version 3 (Phase 3e):
sqlrite_mastergains atypecolumn (first), distinguishing'table'and'index'rows; secondary indexes persist as their own cell-based B-Trees whose cells use the newKIND_INDEXformat.