Skip to main content

Module sqlite

Module sqlite 

Source
Expand description

SQLite and WAL binary format constants.

These constants describe the on-disk layout of SQLite database files and Write-Ahead Log (WAL) files. They are used for forensic carving, integrity checking, and free-page recovery.

All multi-byte integer fields in SQLite headers are big-endian.

Constants§

SQLITE_FREELIST_TRUNK_OFFSET
Byte offset of the freelist trunk page number in the SQLite header.
SQLITE_HEADER_SIZE
Minimum valid SQLite file size in bytes (the 100-byte file header).
SQLITE_PAGE_SIZE_OFFSET
Byte offset of the page size field in the SQLite header.
SQLITE_WAL_FRAME_HEADER_SIZE
Size of a WAL frame header in bytes.
SQLITE_WAL_HEADER_SIZE
Size of the SQLite WAL file header in bytes.

Statics§

MOZLZ4_MAGIC
Firefox mozLz4 session file magic bytes.
SQLITE_MAGIC
SQLite database file magic bytes (first 16 bytes of any valid SQLite file).