#orm #sql

diesel_geometry

Adds support for geometric types and functions to Diesel

5 stable releases

Uses old Rust 2015

1.4.0 May 23, 2019
1.3.0 Sep 2, 2018
1.2.2 Apr 11, 2018
1.2.1 Apr 9, 2018

#832 in Database interfaces

Download history 4/week @ 2023-12-16 1/week @ 2023-12-23 12/week @ 2024-02-17 19/week @ 2024-02-24 12/week @ 2024-03-02 31/week @ 2024-03-09 14/week @ 2024-03-16 9/week @ 2024-03-23

69 downloads per month
Used in got-ya-id

MIT/Apache

36KB
450 lines

Support for geometric types and geometric functions for Diesel.

Crates.io

API Documentation latest release

diesel_geometry provides geometric types and geometric functions.

License

Licensed under either of these:

Contributing

Unless you explicitly state otherwise, any contribution you intentionally submit for inclusion in the work, as defined in the Apache-2.0 license, shall be dual-licensed as above, without any additional terms or conditions.

Testing

To run the integration tests on your machine, you need to have read and write access to a running instance of Postgres. The database is not permanently altered because all tests are wrapped in a single transaction that is rolled back.

When running cargo test set the environment variable PG_DATABASE_URL with the Postgres connection string for your database.

Example

You can start a Postgres database locally using docker with:

docker run -d --rm --name postgres -p 5432:5432 postgres:10

And then run:

PG_DATABASE_URL=postgres://postgres:postgres@localhost:5432 cargo test

Dependencies

~3.5MB
~78K SLoC