Skip to content

Commit e95cb1a

Browse files
Update sqlite to 0.37.0 (#132)
Supersedes #131 --------- Co-authored-by: Matthias Goetzke <[email protected]>
1 parent e3f133d commit e95cb1a

File tree

6 files changed

+10
-11
lines changed

6 files changed

+10
-11
lines changed

.github/workflows/npm.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ jobs:
4545
docker: ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-debian
4646
build: |-
4747
set -e &&
48-
rustup install 1.86.0 &&
49-
rustup default 1.86.0 &&
48+
rustup install 1.88.0 &&
49+
rustup default 1.88.0 &&
5050
apt-get update &&
5151
apt-get -y install protobuf-compiler &&
5252
yarn build --target x86_64-unknown-linux-gnu &&

Cargo.lock

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ prost = "0.13"
3939
prost-build = "0.13"
4040
rand = "0.8.5"
4141
reqwest = { version = "0.12.4", default-features = false, features = ["json", "stream"] }
42-
rusqlite = "0.34.0"
42+
rusqlite = "0.37.0"
4343
serde = { version = "1", features = ["derive"] }
4444
serde_json = "1.0.107"
4545
tempfile = "3"

npm/napi/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ tokio = { version = "1.33.0", features = ["full"] }
2121
anyhow = "1"
2222
prost = "0.13"
2323
once_cell = "1.18.0"
24-
rusqlite = { version = "0.34.0", features = ["bundled"] }
24+
rusqlite = { version = "0.37.0", features = ["bundled"] }
2525
deno_error = "0.7.0"
2626

2727
[build-dependencies]

rust-toolchain.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
[toolchain]
2-
channel = "1.86.0"
2+
channel = "1.88.0"
33
components = ["rustfmt", "clippy"]

sqlite/backend.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ use num_bigint::BigInt;
2424
use rand::Rng;
2525
use rand::RngCore;
2626
use rusqlite::params;
27-
use rusqlite::DatabaseName;
2827
use rusqlite::OptionalExtension;
2928
use rusqlite::Transaction;
3029
use thiserror::Error;
@@ -184,7 +183,7 @@ impl SqliteBackend {
184183
rng: Box<dyn RngCore + Send>,
185184
force_readonly: bool,
186185
) -> Result<Self, SqliteBackendError> {
187-
let readonly = force_readonly || conn.is_readonly(DatabaseName::Main)?;
186+
let readonly = force_readonly || conn.is_readonly("main")?;
188187
let mut this = Self {
189188
conn,
190189
rng,

0 commit comments

Comments
 (0)