martin-georgiev / postgresql-for-doctrine

PostgreSQL enhancements for Doctrine. Provides support for advanced data types (json, jssnb, arrays), text search, array operators and jsonb specific functions.
https://packagist.org/packages/martin-georgiev/postgresql-for-doctrine
MIT License
360 stars 44 forks source link

Range types (mainly tstzrange, tsrange and daterange) #64

Open adaliszk opened 4 years ago

adaliszk commented 4 years ago

Awesome project!

When you have time, could you add support for the built-in range types in Postgres? https://www.postgresql.org/docs/current/rangetypes.html

For the date based ranges, it would be really cool if it already maps the values to a DatePeriod class: https://www.php.net/manual/en/class.dateperiod.php

martin-georgiev commented 4 years ago

Thanks for the suggestion. I hope you can help with the expansion of the project. PR #63 can be used as an example of how new functionality can be added fairly easily.