diff options
author | Alex Auvolat <alex@adnab.me> | 2024-03-18 17:08:54 +0100 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2024-03-18 18:05:25 +0100 |
commit | e8f9718ccd656dacc4fba2ed9fa5d8abf12ad37b (patch) | |
tree | 8896fd504d6fc1be97324c1d813309a24bf43e82 /src/db/Cargo.toml | |
parent | fd2e19bf1bf301bc03aa29ffa3fe1e71008cbe50 (diff) | |
download | garage-e8f9718ccd656dacc4fba2ed9fa5d8abf12ad37b.tar.gz garage-e8f9718ccd656dacc4fba2ed9fa5d8abf12ad37b.zip |
[sqlite-r2d2] implement connection pooling in sqlite backend
Diffstat (limited to 'src/db/Cargo.toml')
-rw-r--r-- | src/db/Cargo.toml | 4 |
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" ] |