{"id":21611264,"url":"https://github.com/runnerty/notifier-db","last_synced_at":"2025-06-24T21:03:39.471Z","repository":{"id":63387540,"uuid":"566826363","full_name":"runnerty/notifier-db","owner":"runnerty","description":"A notified for the insertion of records in database","archived":false,"fork":false,"pushed_at":"2022-11-16T14:01:31.000Z","size":17,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-24T06:39:56.825Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/runnerty.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":"2022-11-16T14:00:09.000Z","updated_at":"2022-11-16T14:01:34.000Z","dependencies_parsed_at":"2022-11-18T01:05:42.572Z","dependency_job_id":null,"html_url":"https://github.com/runnerty/notifier-db","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/runnerty/notifier-db","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/runnerty%2Fnotifier-db","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/runnerty%2Fnotifier-db/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/runnerty%2Fnotifier-db/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/runnerty%2Fnotifier-db/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/runnerty","download_url":"https://codeload.github.com/runnerty/notifier-db/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/runnerty%2Fnotifier-db/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261756524,"owners_count":23205146,"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-24T21:11:44.156Z","updated_at":"2025-06-24T21:03:39.450Z","avatar_url":"https://github.com/runnerty.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003ca href=\"http://runnerty.io\"\u003e\n    \u003cimg height=\"257\" src=\"https://runnerty.io/assets/header/logo-stroked.png\"\u003e\n  \u003c/a\u003e\n  \u003cp align=\"center\"\u003eSmart Processes Management\u003c/p\u003e\n\u003c/p\u003e\n\n[![NPM version][npm-image]][npm-url] [![Downloads][downloads-image]][npm-url]\n\u003ca href=\"#badge\"\u003e\n  \u003cimg alt=\"code style: prettier\" src=\"https://img.shields.io/badge/code_style-prettier-ff69b4.svg\"\u003e\n\u003c/a\u003e\n\n\nA notified for the insertion of records in database [Runnerty]\n\n### Installation:\nThrough NPM\n\n```bash\nnpm i @runnerty/notifier-db\n```\n\nYou can also add modules to your project with [runnerty]\n\n```bash\nnpx runnerty add @runnerty/notifier-db\n```\n\nThis command installs the module in your project, adds example configuration in your [config.json] and creates an example plan of use.\n\nIf you have installed [runnerty] globally you can include the module with this command:\n\n```bash\nrunnerty add @runnerty/notifier-db\n```\n\n### Configuration sample:\nAdd in [config.json]:\n\n```json\n{\n  \"notifiers\": [\n    {\n      \"id\": \"notifier_db_default\",\n      \"type\": \"@runnerty-notifier-db\",\n      \"user\": \"postgres\",\n      \"table\": \"rty.notifications\",\n      \"password\": \"my_password\",\n      \"database\": \"postgres\",\n      \"host\": \"my_host\",\n      \"port\": \"5432\"\n    }\n  ]\n}\n```\n\n# Usage\n\nYou only have to indicate the \"id\" of the notified and the message you want to be inserted in the \"message\" column of the table indicated in the configuration.\n\n```json\n{\n  \"notifications\": {\n    \"on_end\": [\n      {\n        \"id\": \"notifier_db_default\",\n        \"message\": \"Things done right.\"\n      }\n    ]\n  }\n}\n```\n\nIn case you want to insert extra columns in addition to the \"message\" column you can indicate them in the \"columns\" property.\n\n```json\n{\n  \"notifiers\": [\n    {\n      \"id\": \"notifier_db_default\",\n      \"type\": \"@runnerty-notifier-db\",\n      \"user\": \"postgres\",\n      \"table\": \"rty.notifications\",\n      \"password\": \"my_password\",\n      \"database\": \"postgres\",\n      \"host\": \"my_host\",\n      \"port\": \"5432\",\n      \"columns\": [\"message\", \"mode\", \"key\"]\n    }\n  ]\n}\n```\n\n```json\n{\n  \"notifications\": {\n    \"on_end\": [\n      {\n        \"id\": \"notifier_db_default\",\n        \"key\": \"@GV(CHAIN_ID)\",\n        \"message\": \"Things done right.\",\n        \"mode\": \"info\"\n      }\n    ]\n  }\n}\n```\n\n[Runnerty]: https://www.runnerty.io\n[downloads-image]: https://img.shields.io/npm/dm/@runnerty/notifier-db.svg\n[npm-url]: https://www.npmjs.com/package/@runnerty/notifier-db\n[npm-image]: https://img.shields.io/npm/v/@runnerty/notifier-db.svg\n[david-badge]: https://david-dm.org/runnerty/notifier-db.svg\n[david-badge-url]: https://david-dm.org/runnerty/notifier-db\n[config.json]: http://docs.runnerty.io/config/\n[plan.json]: http://docs.runnerty.io/plan/","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frunnerty%2Fnotifier-db","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frunnerty%2Fnotifier-db","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frunnerty%2Fnotifier-db/lists"}