| Crates.io | zero-postgres |
| lib.rs | zero-postgres |
| version | 0.8.0 |
| created_at | 2025-12-25 05:35:52.262712+00 |
| updated_at | 2026-01-21 12:21:15.636329+00 |
| description | A high-performance PostgreSQL client |
| homepage | |
| repository | https://github.com/elbaro/zero-postgres |
| max_upload_size | |
| id | 2004233 |
| size | 718,913 |
A high-performance PostgreSQL client library for Rust.
API Reference (docs.rs) | User Guide
Python binding: pyro-postgres.
sync (default) - Synchronous APItokio (default) - Asynchronous API using tokiosync-tls - TLS support for Synchronous API (experimental)tokio-tls - TLS support for Asynchronous API (experimental)Inserting 10,000 rows using prepared statements (average of 10 iterations):
| Library | Avg Time (ms) |
|---|---|
| zero-postgres (sync) | 250.35 |
| zero-postgres (async) | 269.32 |
| tokio-postgres | 398.90 |
| postgres (sync) | 422.61 |
Run benchmarks: cargo run --release --example bench_zero_sync
More tests and proper benchmarks will be added via pyro-postgres.