rs-db-driver-postgresql-sea-orm 0.1.0
PostgreSQL: SeaORM (the driver, re-exported, with a runnable example)
Install
cargo add rs-db-driver-postgresql-sea-orm --registry rupm
In Ruststudio: Packages, search for rs-db-driver-postgresql-sea-orm, 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-sea-orm
PostgreSQL - SeaORM: async ORM
Add it with `rupm add rs-db-driver-postgresql-sea-orm` (or `cargo add rs-db-driver-postgresql-sea-orm --registry rupm`). The driver `sea-orm` is re-exported as `rs_db_driver_postgresql_sea_orm::sea_orm`.
Also serves: CockroachDB, YugabyteDB
This driver is async: your project also needs an async runtime, for example `cargo add tokio --features macros,rt-multi-thread`.
## Example
```rust
use sea_orm::{ConnectionTrait, Database, DatabaseBackend, DbErr, Statement};
#[tokio::main]
async fn main() -> Result<(), DbErr> {
let db = Database::connect("postgres://user:password@localhost:5432/mydb").await?;
let row = db.query_one(Statement::from_string(DatabaseBackend::Postgres, "SELECT 1 AS n")).await?;
println!("got a row: {}", row.is_some());
Ok(())
}
```