Skip to main content

Module detect

Module detect 

Source
Expand description

On-disk database format detection.

usql and embedding applications need to decide which Engine open variant fits an existing file before they have a key in hand: plaintext SQLite and UQA compressed containers carry cleartext magic bytes, while SQLCipher encrypts the whole file (including the SQLite header), so an encrypted catalog is indistinguishable from a non-database file without attempting a keyed open.

Enums§

DatabaseFileFormat
On-disk format of a database file, detected from its header bytes.

Functions§

detect_database_file_format
Classify the on-disk format of path by reading its first bytes.