File tree Expand file tree Collapse file tree 5 files changed +34
-8
lines changed
Expand file tree Collapse file tree 5 files changed +34
-8
lines changed Original file line number Diff line number Diff line change 1111
1212--------------------------------------------------------------------------------
1313
14+ ## [ 0.5.2] ( https://github.com/Spxg/sqlite-wasm-rs/compare/0.5.1...0.5.2 )
15+
16+ ### Added
17+
18+ * Introduced the ` rsqlite-vfs ` crate.
19+ [ #156 ] ( https://github.com/Spxg/sqlite-wasm-rs/pull/156 )
20+
21+ ### Fixed
22+
23+ ### Changed
24+
25+ * Bump SQLite Version to 3.51.2 and SQLite3MC Version to 2.2.7.
26+ [ #168 ] ( https://github.com/Spxg/sqlite-wasm-rs/pull/168 )
27+
28+ --------------------------------------------------------------------------------
29+
1430## [ 0.5.1] ( https://github.com/Spxg/sqlite-wasm-rs/compare/0.5.0...0.5.1 )
1531
1632### Added
Original file line number Diff line number Diff line change 11[package ]
22name = " sqlite-wasm-rs"
33links = " wsqlite3"
4- version = " 0.5.1 "
4+ version = " 0.5.2 "
55authors = [" Spxg <unsafe@outlook.es>" ]
66repository = " https://github.com/Spxg/sqlite-wasm-rs"
77description = " `wasm32-unknown-unknown` bindings to the libsqlite3 library."
@@ -14,9 +14,9 @@ rust-version.workspace = true
1414include.workspace = true
1515
1616[dependencies ]
17+ rsqlite-vfs = " 0.1.0"
1718wasm-bindgen = { version = " 0.2.104" , default-features = false }
1819js-sys = { version = " 0.3.81" , default-features = false }
19- rsqlite-vfs = { path = " crates/rsqlite-vfs" }
2020
2121[features ]
2222# SQLite3MultipleCiphers
Original file line number Diff line number Diff line change @@ -38,12 +38,12 @@ fn open_db() {
3838
3939``` toml
4040[dependencies ]
41- sqlite-wasm-vfs = " 0.1 "
41+ sqlite-wasm-vfs = " 0.2 "
4242```
4343
4444The following vfs have been implemented:
4545
46- * [ ` memory ` ] ( ./src/ vfs/memory .rs ) : as the default vfs, no additional conditions are required, store the database in memory.
46+ * [ ` memory ` ] ( ./crates/rsqlite- vfs/src/memvfs .rs ) : as the default vfs, no additional conditions are required, store the database in memory.
4747* [ ` sahpool ` ] ( ./crates/sqlite-wasm-vfs/src/sahpool.rs ) : ported from sqlite-wasm, store the database in opfs.
4848* [ ` relaxed-idb ` ] ( ./crates/sqlite-wasm-vfs/src/relaxed_idb.rs ) : store the database in blocks in indexed db.
4949
Original file line number Diff line number Diff line change @@ -6,6 +6,9 @@ edition.workspace = true
66license.workspace = true
77rust-version.workspace = true
88include.workspace = true
9+ keywords = [" sqlite" , " vfs" ]
10+ description = " Helping to implement SQLite VFS."
11+ categories = [" development-tools::ffi" , " wasm" , " database" ]
912
1013[dependencies ]
1114hashbrown = { version = " 0.16.1" , default-features = false , features = [" default-hasher" ] }
Original file line number Diff line number Diff line change 77``` toml
88[dependencies ]
99sqlite-wasm-vec = " 0.1"
10+
11+ [dev-dependencies ]
12+ wasm-bindgen-test = " 0.3.55"
1013rusqlite = " 0.38.0"
1114```
1215
1316``` rust
1417use sqlite_wasm_vec :: sqlite3_vec_init;
1518use rusqlite :: {ffi :: sqlite3_auto_extension, Connection };
19+ use wasm_bindgen_test :: wasm_bindgen_test;
1620
17- #[test ]
18- fn vec_version () -> String {
21+ #[wasm_bindgen_test ]
22+ fn test_rusqlite_auto_extension () {
1923 unsafe {
2024 sqlite3_auto_extension (Some (std :: mem :: transmute (sqlite3_vec_init as * const ())));
2125 }
2226
2327 let conn = Connection :: open_in_memory (). unwrap ();
2428
25- conn . query_row (" select vec_version()" , [], | x | x . get (0 ))
26- . unwrap ()
29+ let result : String = conn
30+ . query_row (" select vec_version()" , [], | x | x . get (0 ))
31+ . unwrap ();
32+
33+ assert! (result . starts_with (" v" ));
2734}
2835```
You can’t perform that action at this time.
0 commit comments