7 releases (4 breaking)

0.5.0 Apr 11, 2024
0.4.1 Feb 7, 2024
0.3.1 Jan 26, 2024
0.2.0 Jan 16, 2024
0.1.0 Jan 8, 2024

#1839 in Database interfaces

Download history 18/week @ 2024-01-11 18/week @ 2024-01-18 9/week @ 2024-01-25 21/week @ 2024-02-01 6/week @ 2024-02-08 12/week @ 2024-02-15 15/week @ 2024-02-22 1/week @ 2024-02-29 8/week @ 2024-03-07 11/week @ 2024-03-14 8/week @ 2024-03-28 1/week @ 2024-04-04 131/week @ 2024-04-11 5/week @ 2024-04-18 3/week @ 2024-04-25

145 downloads per month

MIT license

24KB
520 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–17MB
~292K SLoC