{"id":15063298,"url":"https://github.com/camelotproject/doctrine-postgres-bundle","last_synced_at":"2025-04-10T10:46:09.936Z","repository":{"id":62499227,"uuid":"213281650","full_name":"CamelotProject/doctrine-postgres-bundle","owner":"CamelotProject","description":"PostgreSQL specific functionality for Symfony projects","archived":false,"fork":false,"pushed_at":"2024-03-23T07:51:57.000Z","size":84,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-09T23:47:02.207Z","etag":null,"topics":["doctrine","doctrine-dbal","doctrine-orm","symfony","symfony-bundle"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/CamelotProject.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-10-07T02:43:24.000Z","updated_at":"2024-07-24T11:33:18.000Z","dependencies_parsed_at":"2024-03-04T18:16:28.857Z","dependency_job_id":"83f3f9ac-2337-4de8-a893-ea1e2d343473","html_url":"https://github.com/CamelotProject/doctrine-postgres-bundle","commit_stats":{"total_commits":15,"total_committers":3,"mean_commits":5.0,"dds":0.2666666666666667,"last_synced_commit":"024f96076df55c1a9b9873563f73655af07e28a5"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CamelotProject%2Fdoctrine-postgres-bundle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CamelotProject%2Fdoctrine-postgres-bundle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CamelotProject%2Fdoctrine-postgres-bundle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CamelotProject%2Fdoctrine-postgres-bundle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CamelotProject","download_url":"https://codeload.github.com/CamelotProject/doctrine-postgres-bundle/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248201364,"owners_count":21064105,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["doctrine","doctrine-dbal","doctrine-orm","symfony","symfony-bundle"],"created_at":"2024-09-24T23:54:43.762Z","updated_at":"2025-04-10T10:46:09.908Z","avatar_url":"https://github.com/CamelotProject.png","language":"PHP","readme":"Doctrine Postgres Bundle\n========================\n\n**NOTE:** For legacy PHP support (7.2+) please use the 1.0 branch.\n\nThis bundle provides Doctrine support for some specific PostgreSQL 9.4+ features for Symfony projects:\n\n- Support of JSONB and some array data-types (at present only integers, TEXT and JSONB)\n- Implementation of the most commonly used functions and operators when working with array and JSON data-types\nFunctions for text search\n\nLibraries used:\n\n-  [martin-georgiev/postgresql-for-doctrine][georgiev]\n\nInstallation\n------------\n\n### Applications that use Symfony Flex\n\nOpen a command console, enter your project directory and execute:\n\n```console\ncomposer require camelot/doctrine-postgres-bundle\n```\n\n### Applications that don't use Symfony Flex\n\n#### Step 1: Download the Bundle\n\nOpen a command console, enter your project directory and execute the\nfollowing command to download the latest stable version of this bundle:\n\n```console\ncomposer require camelot/doctrine-postgres-bundle\n```\n\nThis command requires you to have Composer installed globally, as explained\nin the [installation chapter](https://getcomposer.org/doc/00-intro.md)\nof the Composer documentation.\n\n#### Step 2: Enable the Bundle\n\nThen, enable the bundle by adding it to the list of registered bundles\nin the `config/bundles.php` file of your project:\n\n```php\n// config/bundles.php\n\nreturn [\n    // ...\n    Camelot\\DoctrinePostgres\\CamelotDoctrinePostgresBundle::class =\u003e ['all' =\u003e true],\n];\n```\n\nUsing\n-----\n\n### Available DBAL Types\n\n - `jsonb`\n - `jsonb[]`\n - `smallint[]`\n - `integer[]`\n - `bigint[]`\n - `text[]`\n\n### Available String Functions\n\n - `ALL_OF`\n - `ANY_OF`\n - `ARRAY_APPEND`\n - `ARRAY_CARDINALITY`\n - `ARRAY_CAT`\n - `ARRAY_DIMENSIONS`\n - `ARRAY_LENGTH`\n - `ARRAY_NUMBER_OF_DIMENSIONS`\n - `ARRAY_PREPEND`\n - `ARRAY_REMOVE`\n - `ARRAY_REPLACE`\n - `ARRAY_TO_JSON`\n - `ARRAY_TO_STRING`\n - `CAST()`\n - `CONTAINS`\n - `DATE_PART()`\n - `GREATEST`\n - `ILIKE`\n - `IN_ARRAY`\n - `IS_CONTAINED_BY`\n - `JSON_ARRAY_LENGTH`\n - `JSONB_ARRAY_ELEMENTS`\n - `JSONB_ARRAY_ELEMENTS_TEXT`\n - `JSONB_ARRAY_LENGTH`\n - `JSONB_EACH`\n - `JSONB_EACH_TEXT`\n - `JSONB_EXISTS`\n - `JSONB_INSERT`\n - `JSONB_OBJECT_KEYS`\n - `JSONB_SET`\n - `JSONB_STRIP_NULLS`\n - `JSON_EACH`\n - `JSON_EACH_TEXT`\n - `JSON_GET_FIELD`\n - `JSON_GET_FIELD_AS_INTEGER`\n - `JSON_GET_FIELD_AS_TEXT`\n - `JSON_GET_OBJECT`\n - `JSON_GET_OBJECT_AS_TEXT`\n - `JSON_OBJECT_KEYS`\n - `JSON_STRIP_NULLS`\n - `LEAST`\n - `MAKE_DATE()`\n - `OVERLAPS`\n - `STRING_TO_ARRAY`\n - `TO_CHAR()`\n - `TO_JSON`\n - `TO_JSONB`\n - `TO_TSQUERY`\n - `TO_TSVECTOR`\n - `TSMATCH`\n\nSee [Common errors when using ILIKE, CONTAINS, IS_CONTAINED_BY and other operator-like functions][doc-use-case]\nfor tip(s) on using the functions.\n\n[georgiev]: https://github.com/martin-georgiev/postgresql-for-doctrine\n[doc-symfony]: https://github.com/martin-georgiev/postgresql-for-doctrine/blob/master/docs/INTEGRATING-WITH-SYMFONY.md\n[doc-use-case]: https://github.com/martin-georgiev/postgresql-for-doctrine/blob/master/docs/USE-CASES-AND-EXAMPLES.md\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcamelotproject%2Fdoctrine-postgres-bundle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcamelotproject%2Fdoctrine-postgres-bundle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcamelotproject%2Fdoctrine-postgres-bundle/lists"}