| Crates.io | prax-postgres |
| lib.rs | prax-postgres |
| version | 0.5.0 |
| created_at | 2025-12-21 16:28:26.083059+00 |
| updated_at | 2026-01-07 18:33:48.288862+00 |
| description | PostgreSQL driver for the Prax ORM with connection pooling |
| homepage | |
| repository | https://github.com/pegasusheavy/prax-orm |
| max_upload_size | |
| id | 1998250 |
| size | 101,929 |
PostgreSQL query engine for Prax ORM.
prax-postgres provides an async PostgreSQL backend using tokio-postgres with deadpool-postgres connection pooling.
use prax_postgres::PostgresEngine;
let engine = PostgresEngine::new("postgresql://user:pass@localhost/db").await?;
// Execute queries through Prax client
let client = PraxClient::with_engine(engine);
let users = client.user().find_many().exec().await?;
use prax_query::connection::PoolConfig;
let config = PoolConfig::new()
.max_connections(20)
.min_connections(5)
.idle_timeout(Duration::from_secs(300));
Licensed under either of Apache License, Version 2.0 or MIT license at your option.