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

#1967 in Database interfaces

Download history 4/week @ 2024-01-06 21/week @ 2024-01-13 24/week @ 2024-01-20 27/week @ 2024-02-03 17/week @ 2024-02-17 11/week @ 2024-02-24 17/week @ 2024-03-09 2/week @ 2024-03-16 9/week @ 2024-03-30 109/week @ 2024-04-06 24/week @ 2024-04-13 3/week @ 2024-04-20

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–18MB
~297K SLoC