Registry / database / r2d2-sqlite

r2d2-sqlite

JSON →
library0.33.0rscratesunverified

SQLite and SQLCipher support for the r2d2 connection pool.

# Cargo.toml [dependencies] r2d2_sqlite = "0.33.0"
INSTALL
IMPORT
SIG · R2D2-SQLITE
R
r2d2-sqlite
databaserustv0.33.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

SqliteConnectionManager
use r2d2_sqlite::SqliteConnectionManager;

Create a connection pool for SQLite using r2d2.

use r2d2_sqlite::SqliteConnectionManager; use r2d2::Pool; let manager = SqliteConnectionManager::file("test.db"); let pool = Pool::builder().build(manager).unwrap(); let conn = pool.get().unwrap();
Debug
Known issues
gotchaSQLCipher support requires the 'sqlcipher' feature flag.
fix
Add `features = ["sqlcipher"]` to the r2d2-sqlite dependency in Cargo.toml.
affects: *
Upgrade
Version history
0.33.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
13 hits · last 30 days
node
10
Meta
1
Resources
r2d2-sqlite — cargo add r2d2-sqlite · libregistry