Skip to content

Commit a1fc2cb

Browse files
authored
Prepare v0.5.2 release (#169)
1 parent 0b42ecb commit a1fc2cb

File tree

5 files changed

+34
-8
lines changed

5 files changed

+34
-8
lines changed

CHANGELOG.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,22 @@
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

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "sqlite-wasm-rs"
33
links = "wsqlite3"
4-
version = "0.5.1"
4+
version = "0.5.2"
55
authors = ["Spxg <unsafe@outlook.es>"]
66
repository = "https://github.com/Spxg/sqlite-wasm-rs"
77
description = "`wasm32-unknown-unknown` bindings to the libsqlite3 library."
@@ -14,9 +14,9 @@ rust-version.workspace = true
1414
include.workspace = true
1515

1616
[dependencies]
17+
rsqlite-vfs = "0.1.0"
1718
wasm-bindgen = { version = "0.2.104", default-features = false }
1819
js-sys = { version = "0.3.81", default-features = false }
19-
rsqlite-vfs = { path = "crates/rsqlite-vfs" }
2020

2121
[features]
2222
# SQLite3MultipleCiphers

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

4444
The 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

crates/rsqlite-vfs/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ edition.workspace = true
66
license.workspace = true
77
rust-version.workspace = true
88
include.workspace = true
9+
keywords = ["sqlite", "vfs"]
10+
description = "Helping to implement SQLite VFS."
11+
categories = ["development-tools::ffi", "wasm", "database"]
912

1013
[dependencies]
1114
hashbrown = { version = "0.16.1", default-features = false, features = ["default-hasher"] }

extensions/sqlite-vec/README.md

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,22 +7,29 @@
77
```toml
88
[dependencies]
99
sqlite-wasm-vec = "0.1"
10+
11+
[dev-dependencies]
12+
wasm-bindgen-test = "0.3.55"
1013
rusqlite = "0.38.0"
1114
```
1215

1316
```rust
1417
use sqlite_wasm_vec::sqlite3_vec_init;
1518
use 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
```

0 commit comments

Comments
 (0)