#value #tx #simple-pg

simple_pg

Provides extentions and utilites for working with postgres

15 releases

new 0.5.8 Apr 12, 2025
0.5.7 Nov 15, 2024
0.5.5 Oct 15, 2024
0.5.0 Apr 11, 2024
0.4.1 Feb 7, 2024

#720 in Database interfaces

Download history 4/week @ 2025-02-01 22/week @ 2025-02-08 33/week @ 2025-02-15 10/week @ 2025-02-22 3/week @ 2025-03-01

819 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

~8–17MB
~233K SLoC