pub struct WriteLibraryVersion(/* private fields */);
Expand description
§Write library version number (4 Bytes)
The 4-byte big-endian integer at offset 96 stores the SQLITE_VERSION_NUMBER value for the Sqlite library that most recently modified the database file.
The entries at offsets 92 and 96 were added in later version of the SQLite library.
When an older version modifies the file, it will change the change counter (offset 24), but not adjust the version-valid-for number or the write library version number. So the library version number is no longer correct, because a different version last wrote to the file.
The version-valid-for number allows a new library to detect this case: if the change counter and the version-valid-for number do not match, then the write library version number is outdated, and must be ignored.
Reference: https://stackoverflow.com/a/45420823