cornucopia-rs / cornucopia

Generate type-checked Rust from your PostgreSQL.
Other
893 stars 41 forks source link

PostGIS support #221

Open heksesang opened 1 year ago

heksesang commented 1 year ago

It would be nice to support PostGIS extensions when generating code from schemas. Maybe add an option to choose what image will be used with the container?

nk9 commented 7 months ago

Considering Cornucopia as a replacement for sqlx, but my database uses PostGIS. Based on this bug, I guess using Cornucopia today in this way isn't possible?

heksesang commented 6 months ago

Out of the box it isn't possible, no. If we could have https://github.com/cornucopia-rs/cornucopia/pull/208 merged, I believe that should be enough to enable it.

EDIT: Actually, we need a way to update the TypeRegistrar with the geometry type as well. It would be nice to also enable that in an extensible way to enable arbitrary extension support.