cornucopia-rs / cornucopia

Generate type-checked Rust from your PostgreSQL.
Other
755 stars 31 forks source link

PostGIS support #221

Open heksesang opened 9 months ago

heksesang commented 9 months 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 2 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 1 month 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.