Registry / database / rocket-sync-db-pools

rocket-sync-db-pools

JSON →
library0.1.0rscratesunverified

Rocket async database pooling support for sync database drivers.

# Cargo.toml [dependencies] rocket_sync_db_pools = "0.1.0"
INSTALL
IMPORT
SIG · ROCKET-SYNC-DB-POO
R
rocket-sync-db-pools
databaserustv0.1.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.

database
use rocket_sync_db_pools::database;

Define a Rocket database pool for sync drivers.

use rocket_sync_db_pools::database; #[database("my_db")] struct MyDb(diesel::SqliteConnection); fn main() { println!("Database pool configured"); }
Debug
Known issues
gotchaRequires Rocket framework and a sync database driver like Diesel.
fix
Add the necessary dependencies and configure Rocket accordingly.
affects: >=0.1.0
Upgrade
Version history
0.1.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
10 hits · last 30 days
node
8
Amazon
1
Resources
rocket-sync-db-pools — cargo add rocket-sync-db-pools · libregistry