{"id":20388557,"url":"https://github.com/efureev/swoole-doctrine-dbal-pgsql-driver","last_synced_at":"2025-04-12T10:41:59.302Z","repository":{"id":153726646,"uuid":"630447107","full_name":"efureev/swoole-doctrine-dbal-pgsql-driver","owner":"efureev","description":"Doctrine DBAL Driver for Swoole 5 Postgresql database connections","archived":false,"fork":false,"pushed_at":"2025-02-05T09:29:23.000Z","size":46,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-03-28T12:42:28.101Z","etag":null,"topics":["doctrine","swoole","symfony"],"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/efureev.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":"2023-04-20T11:59:32.000Z","updated_at":"2025-02-05T09:29:16.000Z","dependencies_parsed_at":null,"dependency_job_id":"ee943192-25e1-44e5-8801-040d765ec3f5","html_url":"https://github.com/efureev/swoole-doctrine-dbal-pgsql-driver","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/efureev%2Fswoole-doctrine-dbal-pgsql-driver","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/efureev%2Fswoole-doctrine-dbal-pgsql-driver/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/efureev%2Fswoole-doctrine-dbal-pgsql-driver/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/efureev%2Fswoole-doctrine-dbal-pgsql-driver/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/efureev","download_url":"https://codeload.github.com/efureev/swoole-doctrine-dbal-pgsql-driver/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248557015,"owners_count":21124156,"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","swoole","symfony"],"created_at":"2024-11-15T03:11:24.012Z","updated_at":"2025-04-12T10:41:59.283Z","avatar_url":"https://github.com/efureev.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# doctrine-dbal-swoole-pgsql-driver\n\nDoctrine DBAL Driver for Swoole 5 Postgresql database connections\n\n## Installation\n\nThe easiest way to install this package is through composer:\n\n```bash\n$ composer require efureev/swoole-doctrine-dbal-pgsql-driver\n```\n\n## Example\n\nYou can test functionality using supplied docker image, located in [example](example) folder. Cli example can be found\nin [example/cli.php](example/cli.php). HTTP server example can be found in [example/server.php](example/server.php)\n\nApp Config:\n\n```yaml\ndoctrine:\n  dbal:\n    default_connection: 'swoole'\n    connections:\n      swoole:\n        dbname: '%env(DB_MASTER_NAME)%'\n        host: '%env(DB_MASTER_HOST)%'\n        port: '%env(DB_MASTER_PORT)%'\n        user: '%env(DB_MASTER_USER)%'\n        password: '%env(DB_MASTER_PASS)%'\n        driver_class: 'Swoole\\Packages\\Doctrine\\DBAL\\PgSQL\\Driver'\n        server_version: '15'\n        options:\n          poolSize: 3 # MAX count connections in one pool\n          usedTimes: 3 # 1 connection (in pool) will be re-used maximum N queries\n          connectionTTL: 60 # when connection not used this time(seconds) - it will be close (free)\n          tickFrequency: 60000 # when need check possibilities downscale (close) opened connection to DB in pools\n          connectionDelay: 2 # time(seconds) for waiting response from pool\n          useConnectionPool: true # if false, will create new connect instead of using pool\n          retryMaxAttempts: 2 # if connection in pool was timeout (before use) then try re-connect\n          retryDelay: 1000 # delay to try fetch from pool again(milliseconds) if no connect available\n```\n\nAdd Bundle to the `bundles.php`:\n\n```php\n[\n    SwooleDoctrineDbalPoolBundle::class =\u003e ['all' =\u003e true],\n]\n\n```\n\nIt's all.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fefureev%2Fswoole-doctrine-dbal-pgsql-driver","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fefureev%2Fswoole-doctrine-dbal-pgsql-driver","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fefureev%2Fswoole-doctrine-dbal-pgsql-driver/lists"}