aboutsummaryrefslogtreecommitdiff
path: root/src/db/Cargo.toml
diff options
context:
space:
mode:
authorAlex <alex@adnab.me>2024-03-18 19:02:36 +0000
committerAlex <alex@adnab.me>2024-03-18 19:02:36 +0000
commit1a0bffae3491fae6af5a8d4defc5c6b84839e197 (patch)
treefcf59c762f2fd904a8c0567e7466f10a536ae77b /src/db/Cargo.toml
parentfd2e19bf1bf301bc03aa29ffa3fe1e71008cbe50 (diff)
parentb55f52a9b75359b02938ac003a6ea853b36a4f3e (diff)
downloadgarage-1a0bffae3491fae6af5a8d4defc5c6b84839e197.tar.gz
garage-1a0bffae3491fae6af5a8d4defc5c6b84839e197.zip
Merge pull request 'Use connection pooling in sqlite backend' (#779) from sqlite-r2d2 into main
Reviewed-on: https://git.deuxfleurs.fr/Deuxfleurs/garage/pulls/779
Diffstat (limited to 'src/db/Cargo.toml')
-rw-r--r--src/db/Cargo.toml4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/db/Cargo.toml b/src/db/Cargo.toml
index 324de74c..baa94bae 100644
--- a/src/db/Cargo.toml
+++ b/src/db/Cargo.toml
@@ -18,6 +18,8 @@ tracing.workspace = true
heed = { workspace = true, optional = true }
rusqlite = { workspace = true, optional = true, features = ["backup"] }
+r2d2 = { workspace = true, optional = true }
+r2d2_sqlite = { workspace = true, optional = true }
sled = { workspace = true, optional = true }
[dev-dependencies]
@@ -27,4 +29,4 @@ mktemp.workspace = true
default = [ "sled", "lmdb", "sqlite" ]
bundled-libs = [ "rusqlite?/bundled" ]
lmdb = [ "heed" ]
-sqlite = [ "rusqlite" ]
+sqlite = [ "rusqlite", "r2d2", "r2d2_sqlite" ]