mirror of
https://github.com/chatmail/core.git
synced 2026-05-07 08:56:30 +03:00
Update sqlx to enable statement cache
This commit is contained in:
8
Cargo.lock
generated
8
Cargo.lock
generated
@@ -3465,7 +3465,7 @@ dependencies = [
|
|||||||
[[package]]
|
[[package]]
|
||||||
name = "sqlx"
|
name = "sqlx"
|
||||||
version = "0.5.1"
|
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 = [
|
dependencies = [
|
||||||
"sqlx-core",
|
"sqlx-core",
|
||||||
"sqlx-macros",
|
"sqlx-macros",
|
||||||
@@ -3474,7 +3474,7 @@ dependencies = [
|
|||||||
[[package]]
|
[[package]]
|
||||||
name = "sqlx-core"
|
name = "sqlx-core"
|
||||||
version = "0.5.1"
|
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 = [
|
dependencies = [
|
||||||
"ahash 0.6.3",
|
"ahash 0.6.3",
|
||||||
"atoi",
|
"atoi",
|
||||||
@@ -3512,7 +3512,7 @@ dependencies = [
|
|||||||
[[package]]
|
[[package]]
|
||||||
name = "sqlx-macros"
|
name = "sqlx-macros"
|
||||||
version = "0.5.1"
|
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 = [
|
dependencies = [
|
||||||
"dotenv",
|
"dotenv",
|
||||||
"either",
|
"either",
|
||||||
@@ -3530,7 +3530,7 @@ dependencies = [
|
|||||||
[[package]]
|
[[package]]
|
||||||
name = "sqlx-rt"
|
name = "sqlx-rt"
|
||||||
version = "0.3.0"
|
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 = [
|
dependencies = [
|
||||||
"async-native-tls",
|
"async-native-tls",
|
||||||
"async-std",
|
"async-std",
|
||||||
|
|||||||
@@ -61,7 +61,7 @@ async-std-resolver = "0.19.5"
|
|||||||
async-tar = "0.3.0"
|
async-tar = "0.3.0"
|
||||||
uuid = { version = "0.8", features = ["serde", "v4"] }
|
uuid = { version = "0.8", features = ["serde", "v4"] }
|
||||||
rust-hsluv = "0.1.4"
|
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
|
# keep in sync with sqlx
|
||||||
libsqlite3-sys = { version = "0.20.1", default-features = false, features = [ "pkg-config", "vcpkg", "bundled" ] }
|
libsqlite3-sys = { version = "0.20.1", default-features = false, features = [ "pkg-config", "vcpkg", "bundled" ] }
|
||||||
|
|
||||||
|
|||||||
@@ -85,7 +85,6 @@ impl Sql {
|
|||||||
.read_only(false)
|
.read_only(false)
|
||||||
.busy_timeout(Duration::from_secs(100))
|
.busy_timeout(Duration::from_secs(100))
|
||||||
.create_if_missing(true)
|
.create_if_missing(true)
|
||||||
.statement_cache_capacity(0) // XXX workaround for https://github.com/launchbadge/sqlx/issues/1147
|
|
||||||
.synchronous(SqliteSynchronous::Normal);
|
.synchronous(SqliteSynchronous::Normal);
|
||||||
|
|
||||||
PoolOptions::<Sqlite>::new()
|
PoolOptions::<Sqlite>::new()
|
||||||
|
|||||||
Reference in New Issue
Block a user