mirror of
https://github.com/tursodatabase/limbo.git
synced 2025-08-04 18:18:03 +00:00
Merge 'Add PRAGMA schema_version' from Anton Harniakou
This PR adds `PRAGMA schema_version` to get the value of the schema- version integer at offset 40 in the database header. Reviewed-by: Jussi Saurio <jussi.saurio@gmail.com> Closes #1427
This commit is contained in:
commit
6096cfb3d8
4 changed files with 16 additions and 1 deletions
|
@ -4362,6 +4362,7 @@ pub fn op_read_cookie(
|
|||
}
|
||||
let cookie_value = match cookie {
|
||||
Cookie::UserVersion => pager.db_header.lock().user_version.into(),
|
||||
Cookie::SchemaVersion => pager.db_header.lock().schema_cookie.into(),
|
||||
cookie => todo!("{cookie:?} is not yet implement for ReadCookie"),
|
||||
};
|
||||
state.registers[*dest] = Register::OwnedValue(OwnedValue::Integer(cookie_value));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue