pub unsafe fn create_snapshot(
db: *mut sqlite3,
temp_dir: &Path,
encryption: &EncryptionService,
) -> Result<Vec<u8>, SnapshotError>Expand description
Create a snapshot of the database as encrypted bytes.
Uses VACUUM INTO to create a clean copy of the database at a temp path,
reads the bytes, encrypts, and returns the encrypted blob.
ยงSafety
db must be a valid, open sqlite3 connection pointer.