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

Download history 1/week @ 2024-07-21 16/week @ 2024-07-28 15/week @ 2024-08-04 1/week @ 2024-08-11 257/week @ 2024-09-01 142/week @ 2024-09-08 77/week @ 2024-09-15 75/week @ 2024-09-22 92/week @ 2024-09-29 22/week @ 2024-10-06 128/week @ 2024-10-13 18/week @ 2024-10-20 15/week @ 2024-10-27

185 downloads per month

MIT license

32KB
734 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–15MB
~209K SLoC