{"id":15593399,"url":"https://github.com/mr-dxdy/pg_notifier","last_synced_at":"2025-06-19T04:36:01.359Z","repository":{"id":56887922,"uuid":"92055796","full_name":"mr-dxdy/pg_notifier","owner":"mr-dxdy","description":"Process notifies about notifications from postgresql","archived":false,"fork":false,"pushed_at":"2017-05-25T07:59:40.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-08T21:35:49.052Z","etag":null,"topics":["pg","ruby"],"latest_commit_sha":null,"homepage":"","language":"Ruby","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/mr-dxdy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-05-22T13:19:02.000Z","updated_at":"2017-11-14T07:18:23.000Z","dependencies_parsed_at":"2022-08-21T00:50:44.656Z","dependency_job_id":null,"html_url":"https://github.com/mr-dxdy/pg_notifier","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mr-dxdy/pg_notifier","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mr-dxdy%2Fpg_notifier","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mr-dxdy%2Fpg_notifier/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mr-dxdy%2Fpg_notifier/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mr-dxdy%2Fpg_notifier/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mr-dxdy","download_url":"https://codeload.github.com/mr-dxdy/pg_notifier/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mr-dxdy%2Fpg_notifier/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260689037,"owners_count":23046995,"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":["pg","ruby"],"created_at":"2024-10-03T00:16:44.821Z","updated_at":"2025-06-19T04:35:56.344Z","avatar_url":"https://github.com/mr-dxdy.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PgNotifier\n\nProcess notifies about postgresql notifications.\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'pg_notifier'\n```\n\n## Quickstart\n\nCreate notifiers.rb:\n\n``` ruby\nrequire 'pg_notifier'\n\nmodule PgNotifier\n  configure do |notifier|\n    notifier.logger = Logger.new('/var/log/pg_notifier.log')\n    notifier.db_config = {\n      host: 'localhost',\n      port: 5432,\n      dbname: database_production,\n      user: 'postgres',\n      password: 'postgres'\n    }\n  end\n\n  notify 'created_user' do |channel, pid, payload|\n    puts \"#{channel} #{pid} #{payload}\"\n  end\nend\n```\nRun it with the pg_notifier executable:\n\n``` bash\n$ pg_notifier notifiers.rb\n```\n\nIf you need to load your entire environment for your jobs, simply add:\n\n``` bash\nrequire 'pg_notifier'\n\nrequire './config/boot'\nrequire './config/environment'\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmr-dxdy%2Fpg_notifier","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmr-dxdy%2Fpg_notifier","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmr-dxdy%2Fpg_notifier/lists"}