#postgis #graphql #sqlx #shim #type

geox

Shim to simplify using PostGIS types with sqlx and async-graphql

12 releases

new 0.6.0 Mar 25, 2024
0.5.3 Nov 15, 2023
0.5.2 Feb 23, 2023
0.5.1 Oct 10, 2022
0.3.2 Nov 30, 2021

#52 in Geospatial

Download history 6/week @ 2024-02-08 12/week @ 2024-02-15 17/week @ 2024-02-22 19/week @ 2024-02-29 12/week @ 2024-03-07 2/week @ 2024-03-14 120/week @ 2024-03-21

156 downloads per month

Apache-2.0 OR MIT

19KB
485 lines

geox

Shim to simplify using PostGIS types with sqlx and async-graphql.

Feature flags:

  • async-graphql: enable GraphQL types
  • sqlx: enable conversions for sqlx
  • serde: enable serde serialisation and deserialisation

Running tests locally

  1. docker run -d -e POSTGRES_PASSWORD=password -p 5432:5432 --name geox ghcr.io/baosystems/postgis:latest
  2. cargo test
  3. ???
  4. PROFIT!

Dependencies

~6–20MB
~280K SLoC