rs-db-driver-postgresql-postgres 0.1.0
PostgreSQL: postgres (the driver, re-exported, with a runnable example)
Install
cargo add rs-db-driver-postgresql-postgres --registry rupm
In Ruststudio: Packages, search for rs-db-driver-postgresql-postgres, Install.
Owner: Rust Studio. Licence: MIT OR Apache-2.0. Total downloads: 0. Published 2026-11-23.
Versions
- 0.1.0 2026-11-23
README
# rs-db-driver-postgresql-postgres
PostgreSQL - postgres: blocking driver
Add it with `rupm add rs-db-driver-postgresql-postgres` (or `cargo add rs-db-driver-postgresql-postgres --registry rupm`). The driver `postgres` is re-exported as `rs_db_driver_postgresql_postgres::postgres`.
Also serves: CockroachDB, YugabyteDB, TimescaleDB
## Example
```rust
use postgres::{Client, Error, NoTls};
fn main() -> Result<(), Error> {
let mut client = Client::connect("host=localhost user=postgres password=password dbname=mydb", NoTls)?;
for row in client.query("SELECT 1::INT4", &[])? {
let value: i32 = row.get(0);
println!("the server answered {value}");
}
Ok(())
}
```