prax-postgres
PostgreSQL query engine for Prax ORM.
Overview
prax-postgres provides an async PostgreSQL backend using tokio-postgres with deadpool-postgres connection pooling.
Features
- Async query execution with Tokio
- Connection pooling via deadpool-postgres
- Transaction support with savepoints
- Prepared statement caching
- SSL/TLS support
Usage
use PostgresEngine;
let engine = new.await?;
// Execute queries through Prax client
let client = with_engine;
let users = client.user.find_many.exec.await?;
Configuration
use PoolConfig;
let config = new
.max_connections
.min_connections
.idle_timeout;
License
Licensed under either of Apache License, Version 2.0 or MIT license at your option.