diff --git a/Cargo.lock b/Cargo.lock index 45c84c585..7b8b364e2 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3465,7 +3465,7 @@ dependencies = [ [[package]] name = "sqlx" version = "0.5.1" -source = "git+https://github.com/dignifiedquire/sqlx?branch=fix-pool-time-out#30a6f04a193632f5d43c02da9dc6d0ef84e88920" +source = "git+https://github.com/link2xt/sqlx?branch=sqlite3-reset-fetch_many#7a29ed87120231b5150386971f0639a90ab8c14f" dependencies = [ "sqlx-core", "sqlx-macros", @@ -3474,7 +3474,7 @@ dependencies = [ [[package]] name = "sqlx-core" version = "0.5.1" -source = "git+https://github.com/dignifiedquire/sqlx?branch=fix-pool-time-out#30a6f04a193632f5d43c02da9dc6d0ef84e88920" +source = "git+https://github.com/link2xt/sqlx?branch=sqlite3-reset-fetch_many#7a29ed87120231b5150386971f0639a90ab8c14f" dependencies = [ "ahash 0.6.3", "atoi", @@ -3512,7 +3512,7 @@ dependencies = [ [[package]] name = "sqlx-macros" version = "0.5.1" -source = "git+https://github.com/dignifiedquire/sqlx?branch=fix-pool-time-out#30a6f04a193632f5d43c02da9dc6d0ef84e88920" +source = "git+https://github.com/link2xt/sqlx?branch=sqlite3-reset-fetch_many#7a29ed87120231b5150386971f0639a90ab8c14f" dependencies = [ "dotenv", "either", @@ -3530,7 +3530,7 @@ dependencies = [ [[package]] name = "sqlx-rt" version = "0.3.0" -source = "git+https://github.com/dignifiedquire/sqlx?branch=fix-pool-time-out#30a6f04a193632f5d43c02da9dc6d0ef84e88920" +source = "git+https://github.com/link2xt/sqlx?branch=sqlite3-reset-fetch_many#7a29ed87120231b5150386971f0639a90ab8c14f" dependencies = [ "async-native-tls", "async-std", diff --git a/Cargo.toml b/Cargo.toml index 339c2dd50..dbd48f57b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -61,7 +61,7 @@ async-std-resolver = "0.19.5" async-tar = "0.3.0" uuid = { version = "0.8", features = ["serde", "v4"] } rust-hsluv = "0.1.4" -sqlx = { git = "https://github.com/dignifiedquire/sqlx", branch = "fix-pool-time-out", features = ["runtime-async-std-native-tls", "sqlite"] } +sqlx = { git = "https://github.com/link2xt/sqlx", branch = "sqlite3-reset-fetch_many", features = ["runtime-async-std-native-tls", "sqlite"] } # keep in sync with sqlx libsqlite3-sys = { version = "0.20.1", default-features = false, features = [ "pkg-config", "vcpkg", "bundled" ] } diff --git a/src/sql/mod.rs b/src/sql/mod.rs index 5ce93f3ca..783e87d80 100644 --- a/src/sql/mod.rs +++ b/src/sql/mod.rs @@ -85,7 +85,6 @@ impl Sql { .read_only(false) .busy_timeout(Duration::from_secs(100)) .create_if_missing(true) - .statement_cache_capacity(0) // XXX workaround for https://github.com/launchbadge/sqlx/issues/1147 .synchronous(SqliteSynchronous::Normal); PoolOptions::::new()