Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/erichard/doctrine-pgsql-extension
Doctrine implementation of some useful PostgreSQL data types
https://github.com/erichard/doctrine-pgsql-extension
Last synced: 3 months ago
JSON representation
Doctrine implementation of some useful PostgreSQL data types
- Host: GitHub
- URL: https://github.com/erichard/doctrine-pgsql-extension
- Owner: erichard
- License: mit
- Created: 2017-08-16T16:06:33.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-03-14T11:39:44.000Z (almost 7 years ago)
- Last Synced: 2024-09-18T01:13:24.077Z (4 months ago)
- Language: PHP
- Homepage:
- Size: 15.6 KB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
PostgreSQL Doctrine Type
========================This library add support for useful postgresql types such as Point, DateRange or Arrays.
Usage
-----In Symfony, you only need to update your DBAL config.
```
doctrine:
dbal:
types:
jsonb: PostgreSQLDoctrineType\DBAL\Type\JsonType
daterange: PostgreSQLDoctrineType\DBAL\Type\DateRangeType
tsrange: PostgreSQLDoctrineType\DBAL\Type\TsRangeType
varchar_array: PostgreSQLDoctrineType\DBAL\Type\VarcharArrayType
mapping_types:
json_array: jsonb # redefine doctrine json_array to use jsonb
daterange: daterange
tsrange: tsrange
```