pomm-project / Foundation

Foundation package for the Pomm database framework.
MIT License
70 stars 36 forks source link

PostGIS types converters #80

Open sanpii opened 7 years ago

sanpii commented 7 years ago

During the last postgresql meetup, someone talked me about a good improvement: adding postgis converters.

I think this types can be provided by an extension.

I don’t use postgis, but if someone does, it’s a good issue to start contributing to pomm.

http://postgis.net/

rdavaillaud commented 7 years ago

That's a really good idea, I can probably give some help on this one, will think about it.

First, I have to ask. How do we create an extension for Pomm?

sanpii commented 7 years ago

How do we create an extension for Pomm?

Great question! In this case, it’s a set of converters classes with a SessionBuilder to register this converters.

But inheritance isn’t a good patern for plugins: how can I use the model manager and this plugin? @chanmix51 I’ve missed something?