14 releases

0.5.7 Nov 15, 2024
0.5.5 Oct 15, 2024
0.5.0 Apr 11, 2024
0.4.1 Feb 7, 2024

#1167 in Database interfaces

Download history 269/week @ 2024-09-02 134/week @ 2024-09-09 76/week @ 2024-09-16 79/week @ 2024-09-23 85/week @ 2024-09-30 23/week @ 2024-10-07 133/week @ 2024-10-14 12/week @ 2024-10-21 15/week @ 2024-10-28 143/week @ 2024-11-04 114/week @ 2024-11-11 32/week @ 2024-11-18 2/week @ 2024-11-25 24/week @ 2024-12-02

178 downloads per month

MIT license

31KB
731 lines

simple_pg

A work in progress series of crates to simply working postgreSQL in rust. Based on:

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–16MB
~213K SLoC