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/test.rs | |
parent | fd2e19bf1bf301bc03aa29ffa3fe1e71008cbe50 (diff) | |
download | garage-e8f9718ccd656dacc4fba2ed9fa5d8abf12ad37b.tar.gz garage-e8f9718ccd656dacc4fba2ed9fa5d8abf12ad37b.zip |
[sqlite-r2d2] implement connection pooling in sqlite backend
Diffstat (limited to 'src/db/test.rs')
-rw-r--r-- | src/db/test.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/db/test.rs b/src/db/test.rs index cd99eafa..cad25f4d 100644 --- a/src/db/test.rs +++ b/src/db/test.rs @@ -106,6 +106,7 @@ fn test_sled_db() { fn test_sqlite_db() { use crate::sqlite_adapter::SqliteDb; - let db = SqliteDb::init(rusqlite::Connection::open_in_memory().unwrap()); + let manager = r2d2_sqlite::SqliteConnectionManager::memory(); + let db = SqliteDb::new(manager, false).unwrap(); test_suite(db); } |