{"id":15056353,"url":"https://github.com/niamtokik/pgq","last_synced_at":"2026-02-07T10:02:51.833Z","repository":{"id":221964953,"uuid":"755704040","full_name":"niamtokik/pgq","owner":"niamtokik","description":"Erlang interface to pgq","archived":false,"fork":false,"pushed_at":"2024-02-13T18:53:40.000Z","size":25,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-21T07:39:58.666Z","etag":null,"topics":["database","epgsql","erlang","pgq","postgresql","queue","queuing"],"latest_commit_sha":null,"homepage":"https://github.com/niamtokik/pgq","language":"Erlang","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/niamtokik.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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":"2024-02-10T21:01:16.000Z","updated_at":"2024-11-25T05:00:04.000Z","dependencies_parsed_at":"2024-02-13T20:01:15.185Z","dependency_job_id":null,"html_url":"https://github.com/niamtokik/pgq","commit_stats":null,"previous_names":["niamtokik/pgq"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/niamtokik/pgq","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/niamtokik%2Fpgq","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/niamtokik%2Fpgq/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/niamtokik%2Fpgq/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/niamtokik%2Fpgq/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/niamtokik","download_url":"https://codeload.github.com/niamtokik/pgq/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/niamtokik%2Fpgq/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29191991,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-07T07:37:03.739Z","status":"ssl_error","status_checked_at":"2026-02-07T07:37:03.029Z","response_time":63,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["database","epgsql","erlang","pgq","postgresql","queue","queuing"],"created_at":"2024-09-24T21:50:04.978Z","updated_at":"2026-02-07T10:02:51.810Z","avatar_url":"https://github.com/niamtokik.png","language":"Erlang","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pgq\n\nAn Erlang library to use [pgq](https://pgq.github.io/extension/pgq)\npostgresql extension.\n\nThis project was created to understand `pgq` and how to study queueing\nsystems on PostgreSQL. `pgq` application should not be used in\nproduction for the moment.\n\n## Build\n\n```erlang\nrebar3 compile\n```\n\n## Installation and Boostrap\n\nDownload and install pgq postgresql extension.\n\n```sh\ngit clone https://github.com/pgq/pgq\nmake \nmake install\n```\n\nCreate a new database (or use an existing one) and enable the\nextension.\n\n```sql\nCREATE DATABASE my_database;\n\\c my_database\nCREATE EXTENSION pgq;\n```\n\n## Usage\n\n### Main Interface\n\nTODO\n\n### Low Level Interface\n\n```erlang\n% Requires an active and valid epgsql connection.\n{ok, C} = epgsql:connect(Args).\n\n% check if pgq is installed.\ntrue = pgq_low:is_installed(C).\n\n% check the version\n{ok, Version} = pgq_low:version(C).\n\n% create a queue\n{ok, _} = pgq_low:create_queue(C, \"new_queue\").\n\n% insert data\n{ok, _} = pgq_low:insert_event(C, \"new_queue\", \"event_type\", \"event_value\").\n```\n\n### Producer Process\n\nTODO\n\n### Consumer Process\n\nTODO\n\n### PubSub Pattern\n\nTODO\n\n### Topics Pattern\n\nTODO\n\n### Routing Pattern\n\nTODO\n\n### RPC Pattern\n\nTODO\n\n## References and Resources\n\n[pgq official documentation](https://pgq.github.io/extension/pgq)\n\n[pgq official repository](https://github.com/pgq/pgq)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fniamtokik%2Fpgq","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fniamtokik%2Fpgq","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fniamtokik%2Fpgq/lists"}