{"id":16776992,"url":"https://github.com/rueian/pgbroker-static","last_synced_at":"2025-04-10T20:14:36.466Z","repository":{"id":59045159,"uuid":"244458375","full_name":"rueian/pgbroker-static","owner":"rueian","description":"A PostgreSQL proxy that can map multiple PGs into one entry. And easy to do query rewrite in golang.","archived":false,"fork":false,"pushed_at":"2021-03-18T17:33:15.000Z","size":18,"stargazers_count":10,"open_issues_count":1,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-24T17:55:16.909Z","etag":null,"topics":["docker","golang","postgres","postgresql","proxy"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rueian.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-03-02T19:36:19.000Z","updated_at":"2024-05-16T01:31:30.000Z","dependencies_parsed_at":"2022-09-11T06:50:54.503Z","dependency_job_id":null,"html_url":"https://github.com/rueian/pgbroker-static","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rueian%2Fpgbroker-static","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rueian%2Fpgbroker-static/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rueian%2Fpgbroker-static/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rueian%2Fpgbroker-static/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rueian","download_url":"https://codeload.github.com/rueian/pgbroker-static/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248288399,"owners_count":21078903,"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":["docker","golang","postgres","postgresql","proxy"],"created_at":"2024-10-13T07:11:34.223Z","updated_at":"2025-04-10T20:14:36.449Z","avatar_url":"https://github.com/rueian.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pgbroker-static\n\nA simple postgresql proxy that can map multiple pg instances into one entry by a static YAML configuration. \n\nThe proxy is built with [pgbroker](https://github.com/rueian/pgbroker), which makes it easy to support dynamic database mappings from an external resource controller and modification on data transferred between client and pg in streaming or per message manner.\n\n## Usage\n\n```bash\ndocker pull rueian/pgbroker-static:latest\n```\n\n## Example\n\n### configuration\n\nSee [./example/config.yml](./example/config.yml)\n\n```yaml\n---\ndatabases:\n  entrydb:                  # \u003c- the database name you sent in the Startup Message\n    datname: postgres       # \u003c- the actual database name of the target pg instance\n    address: postgres:5432  # \u003c- the actual tcp address of the target pg instance\n```\n\n### pgbench\n\nSee [./docker-compose.yml](./docker-compose.yml)\n\n\n## Dynamic database mapping from an external resource controller\n\nPlease checkout the [godemand-example](https://github.com/rueian/godemand-example) project, which uses [godemand](https://github.com/rueian/godemand) as an external http resource controller for dynamic pg mapping.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frueian%2Fpgbroker-static","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frueian%2Fpgbroker-static","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frueian%2Fpgbroker-static/lists"}