is_database_encrypted

Function is_database_encrypted 

Source
pub fn is_database_encrypted(db_path: &Path) -> Result<bool>
Expand description

Inspects the first 5 bytes of a file to check if it matches Turso’s encrypted page header (b"Turso"). Returns false if the file does not exist or has fewer than 5 bytes.