13 unstable releases (4 breaking)
new 0.5.6 | Nov 4, 2024 |
---|---|
0.5.5 | Oct 15, 2024 |
0.5.4 | Sep 27, 2024 |
0.5.0 | Apr 11, 2024 |
0.1.0 | Jan 8, 2024 |
#1251 in Database interfaces
185 downloads per month
32KB
734 lines
simple_pg
A work in progress series of crates to simply working postgreSQL in rust. Based on:
- https://docs.rs/tokio-postgres/latest/tokio_postgres/
- https://docs.rs/deadpool-postgres/0.12.1/deadpool_postgres
Primary Goals:
- Deeply integrate query builder.
- Unify client types so generic client isn't needed. Replaced by
impl Deref<Conn>
. - Provided methods for fast & parallel unit testing via schema universes.
- Optimize performance for our use cases.
- Reduce incremental compile times via reducing monomorphization.
Features
SQL macro
sql!(INSERT INTO schema.table VALUES(
{ entity.id },
"some_text",
ST_SetSRID({ geometry }), 4326)
)).execute(&mut tx)?;
Dependencies
~7–15MB
~209K SLoC