Registry / database / deadpool-postgres

deadpool-postgres

JSON →
library0.14.1rscratesunverified

Dead simple async pool for tokio-postgres connections.

# Cargo.toml [dependencies] deadpool-postgres = "0.14.1"
INSTALL
IMPORT
SIG · DEADPOOL-POSTGRES
D
deadpool-postgres
databaserustv0.14.1
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.

Pool
use deadpool_postgres::Pool;

Creates a PostgreSQL connection pool.

use deadpool_postgres::{Config, Pool}; let mut cfg = Config::new(); cfg.host = Some("localhost".to_string()); let pool: Pool = cfg.create_pool().unwrap();
Debug
Known issues
gotchaRequires tokio runtime.
fix
Ensure tokio is in dependencies and runtime is active.
affects: *
Upgrade
Version history
0.14.1latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources