simple_pg

Crates.iosimple_pg
lib.rssimple_pg
version0.5.0
sourcesrc
created_at2024-01-08 18:41:51.50725
updated_at2024-04-11 17:12:31.942247
descriptionProvides extentions and utilites for working with postgres.
homepage
repository
max_upload_size
id1092863
size24,197
Thomas Dagenais (exrok)

documentation

README

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)?;
Commit count: 0

cargo fmt