12 releases (4 breaking)

new 0.5.5 Oct 15, 2024
0.5.4 Sep 27, 2024
0.5.0 Apr 11, 2024
0.4.1 Feb 7, 2024
0.1.0 Jan 8, 2024

#1110 in Database interfaces

Download history 1/week @ 2024-07-18 16/week @ 2024-07-25 9/week @ 2024-08-01 7/week @ 2024-08-08 377/week @ 2024-09-05 85/week @ 2024-09-12 18/week @ 2024-09-19 136/week @ 2024-09-26 40/week @ 2024-10-03 53/week @ 2024-10-10

256 downloads per month

MIT license

32KB
735 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
~203K SLoC