{"id":19723512,"url":"https://github.com/remind101/activerecord-pgbouncer","last_synced_at":"2025-04-29T22:30:59.435Z","repository":{"id":59150382,"uuid":"61254166","full_name":"remind101/activerecord-pgbouncer","owner":"remind101","description":"ActiveRecord connection adapter for using PgBouncer safely.","archived":false,"fork":false,"pushed_at":"2016-06-16T02:27:28.000Z","size":10,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":15,"default_branch":"master","last_synced_at":"2025-04-20T13:19:45.741Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/remind101.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}},"created_at":"2016-06-16T01:59:50.000Z","updated_at":"2018-06-01T00:22:36.000Z","dependencies_parsed_at":"2022-09-13T11:00:37.049Z","dependency_job_id":null,"html_url":"https://github.com/remind101/activerecord-pgbouncer","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/remind101%2Factiverecord-pgbouncer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/remind101%2Factiverecord-pgbouncer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/remind101%2Factiverecord-pgbouncer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/remind101%2Factiverecord-pgbouncer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/remind101","download_url":"https://codeload.github.com/remind101/activerecord-pgbouncer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251592958,"owners_count":21614449,"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":[],"created_at":"2024-11-11T23:22:26.976Z","updated_at":"2025-04-29T22:30:59.057Z","avatar_url":"https://github.com/remind101.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ActiveRecord PgBouncer Connection Adapter [![Build Status](https://travis-ci.org/remind101/activerecord-pgbouncer.svg?branch=master)](https://travis-ci.org/remind101/activerecord-pgbouncer)\n\nWhen using PgBouncer, there are certain considerations to take into account:\n\n* If you're using transaction pooling mode, prepared statements must be disabled.\n* If you're using transaction pooling mode, session level features should not be used.\n\nThis is a light layer above the PostgreSQL connection adapter, that helps ensure that you don't make the mistakes above!\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'activerecord-pgbouncer'\n```\n\n## Usage\n\nThis adds a `pgbouncer` adapter, which you can use in `config/database.yml` or `ENV['DATABASE_URL']`:\n\n```yaml\nproduction:\n  adapter: pgbouncer\n  pooling_mode: transaction # Can be `session`, `transaction`, or `statement`\n```\n\n```shell\nexport DATABASE_URL=pgbouncer://user:pass@host/db?pooling_mode=transaction\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fremind101%2Factiverecord-pgbouncer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fremind101%2Factiverecord-pgbouncer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fremind101%2Factiverecord-pgbouncer/lists"}