{"id":13755197,"url":"https://github.com/onebeyond/systemic-pg","last_synced_at":"2025-04-12T01:15:12.654Z","repository":{"id":9790813,"uuid":"63353110","full_name":"onebeyond/systemic-pg","owner":"onebeyond","description":"A systemic pg component","archived":false,"fork":false,"pushed_at":"2023-07-20T06:29:07.000Z","size":229,"stargazers_count":2,"open_issues_count":5,"forks_count":3,"subscribers_count":15,"default_branch":"master","last_synced_at":"2025-04-12T01:15:07.121Z","etag":null,"topics":["hacktoberfest"],"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/onebeyond.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,"governance":null,"roadmap":null,"authors":null}},"created_at":"2016-07-14T16:39:47.000Z","updated_at":"2023-01-27T08:13:31.000Z","dependencies_parsed_at":"2024-01-13T03:12:07.706Z","dependency_job_id":null,"html_url":"https://github.com/onebeyond/systemic-pg","commit_stats":null,"previous_names":["guidesmiths/systemic-pg"],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onebeyond%2Fsystemic-pg","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onebeyond%2Fsystemic-pg/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onebeyond%2Fsystemic-pg/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onebeyond%2Fsystemic-pg/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/onebeyond","download_url":"https://codeload.github.com/onebeyond/systemic-pg/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248501861,"owners_count":21114684,"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":["hacktoberfest"],"created_at":"2024-08-03T10:00:48.572Z","updated_at":"2025-04-12T01:15:12.628Z","avatar_url":"https://github.com/onebeyond.png","language":"JavaScript","funding_links":[],"categories":["Modules"],"sub_categories":[],"readme":"[![Maintainability](https://api.codeclimate.com/v1/badges/8fd0f7468cac4f37fd50/maintainability)](https://codeclimate.com/github/onebeyond/systemic-pg/maintainability)\n[![Test Coverage](https://api.codeclimate.com/v1/badges/8fd0f7468cac4f37fd50/test_coverage)](https://codeclimate.com/github/onebeyond/systemic-pg/test_coverage)\n\n# systemic-pg\nA [systemic](https://github.com/guidesmiths/systemic) pg component\n\n## Usage\n```js\nconst System = require('systemic')\nconst postgres = require('systemic-pg')\n\nnew System()\n    .configure({\n        postgres: {\n            host: 'localhost',\n            database: 'example'\n            onConnect: [\n                \"SET client_min_messages = WARNING\",\n                \"SET search_path = custom,public\"\n            ]\n        }\n    })\n    .add('logger', console)\n    .add('postgres', postgres()).dependsOn('config', 'logger')\n    .start((err, components) =\u003e {\n        // Do stuff with components.pg\n    })\n```\n\n### \u003c= 0.12\nsystemic-pg relies on the underlying [pg](https://github.com/brianc/node-postgres) library, which uses native promises and is therefore incompatible with node 0.12 and below. You can monkey patch Promise or use an alternative promise implementation by following [these](https://github.com/brianc/node-pg-pool#bring-your-own-promise) instructions.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fonebeyond%2Fsystemic-pg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fonebeyond%2Fsystemic-pg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fonebeyond%2Fsystemic-pg/lists"}