Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds diesel support for Ewkb type for postgis #89

Merged
merged 2 commits into from Dec 20, 2022

Conversation

myaple
Copy link
Contributor

@myaple myaple commented Dec 20, 2022

This addition allows for the seamless use of the Ewkb format in diesel to map to postgis geometry and geography types. Because postgis emits Ewkb for geometry types, we can make the wkb module an entrypoint into the GeoRust ecosystem and allow easy conversion to other types. While it is feasible to make any type that implements ToWkb and has a To* trait from wkb a base type in diesel, Ewkb is the most flexible because it is the base emission from postgis.

@pka
Copy link
Member

pka commented Dec 20, 2022

Thanks, code looks good! Could you check the failing test?

@pka pka self-assigned this Dec 20, 2022
@pka pka merged commit bcc1c3a into georust:master Dec 20, 2022
@myaple myaple deleted the dev/diesel-postgis branch December 20, 2022 20:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants