{"id":19745414,"url":"https://github.com/btd/simple-pg","last_synced_at":"2025-10-07T08:00:07.648Z","repository":{"id":44112057,"uuid":"195524129","full_name":"btd/simple-pg","owner":"btd","description":"Utilities to work with postgresql","archived":false,"fork":false,"pushed_at":"2022-02-12T09:07:12.000Z","size":81,"stargazers_count":0,"open_issues_count":5,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-28T07:44:48.409Z","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/btd.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":"2019-07-06T09:55:06.000Z","updated_at":"2019-07-06T09:55:44.000Z","dependencies_parsed_at":"2022-08-30T23:20:26.970Z","dependency_job_id":null,"html_url":"https://github.com/btd/simple-pg","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/btd/simple-pg","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/btd%2Fsimple-pg","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/btd%2Fsimple-pg/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/btd%2Fsimple-pg/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/btd%2Fsimple-pg/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/btd","download_url":"https://codeload.github.com/btd/simple-pg/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/btd%2Fsimple-pg/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278740831,"owners_count":26037481,"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","status":"online","status_checked_at":"2025-10-07T02:00:06.786Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2024-11-12T02:08:15.934Z","updated_at":"2025-10-07T08:00:07.625Z","avatar_url":"https://github.com/btd.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ingo-pg\r\n\r\nSmall wrapper around `node-pg` including patched `node-pg-query-stream` to make it work with node v11.\r\nIt contains set of patches to fix int8 to integer conversion.\r\n\r\nTo use:\r\n```js\r\nconst { db } = require('ingo-pg');\r\n\r\ndb.initPool({ /* node-pg pool options */ });\r\n\r\nconst result = await db.run('select 1');\r\n```\r\n\r\nIt has safe query builder:\r\n```js\r\nconst { sql } = require('ingo-pg');\r\n\r\nconst id = 1;\r\nconst q = sql`select col from tbl where id = ${id}`;\r\n\r\ndb.run(q);\r\n```\r\n\r\nIt has helpers for update and insert statements, use `updateSet`,\r\n  `values`,\r\n  `insert` functions exported from `ingo-pg`.\r\n\r\n\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbtd%2Fsimple-pg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbtd%2Fsimple-pg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbtd%2Fsimple-pg/lists"}