infer::archive

Function is_sqlite

Source
pub fn is_sqlite(buf: &[u8]) -> bool
Expand description

Returns whether a buffer is a sqlite3 database.

ยงExample

use std::fs;
assert!(infer::archive::is_sqlite(&fs::read("testdata/sample.db").unwrap()));