sqlite_wasm_rs/
lib.rs

1#![doc = include_str!("../README.md")]
2
3#[rustfmt::skip]
4#[allow(non_upper_case_globals)]
5#[allow(non_camel_case_types)]
6#[allow(non_snake_case)]
7#[allow(clippy::type_complexity)]
8mod libsqlite3;
9
10#[allow(non_upper_case_globals)]
11#[allow(non_camel_case_types)]
12#[allow(non_snake_case)]
13mod shim;
14
15/// vfs implementation
16#[allow(non_upper_case_globals)]
17#[allow(non_camel_case_types)]
18#[allow(non_snake_case)]
19mod vfs;
20
21// sqlite3 bindings
22pub use libsqlite3::*;
23
24// mem vfs implementation
25pub use vfs::memory as mem_vfs;
26
27// opfs sync access handle vfs implementation
28pub use vfs::sahpool as sahpool_vfs;
29
30// relaxed idb vfs implementation
31#[cfg(feature = "relaxed-idb")]
32pub use vfs::relaxed_idb as relaxed_idb_vfs;
33
34// some tools for implementing VFS
35pub use vfs::utils;
36
37// `pub use` to avoid optimization
38#[cfg(feature = "custom-libc")]
39pub use sqlite_wasm_libc;
40
41#[cfg(test)]
42wasm_bindgen_test::wasm_bindgen_test_configure!(run_in_dedicated_worker);