{"id":29784787,"url":"https://github.com/mywaiting/psql","last_synced_at":"2026-04-15T15:34:42.786Z","repository":{"id":62422177,"uuid":"346193475","full_name":"mywaiting/psql","owner":"mywaiting","description":"Deno implementation of the Postgresql client-server protocol","archived":false,"fork":false,"pushed_at":"2021-06-27T10:02:21.000Z","size":291,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-28T19:58:03.210Z","etag":null,"topics":["deno","postgres","postgresql"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/mywaiting.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":"2021-03-10T01:21:03.000Z","updated_at":"2025-02-22T10:45:42.000Z","dependencies_parsed_at":"2022-11-01T17:31:28.687Z","dependency_job_id":null,"html_url":"https://github.com/mywaiting/psql","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/mywaiting/psql","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mywaiting%2Fpsql","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mywaiting%2Fpsql/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mywaiting%2Fpsql/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mywaiting%2Fpsql/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mywaiting","download_url":"https://codeload.github.com/mywaiting/psql/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mywaiting%2Fpsql/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31848032,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-15T15:24:51.572Z","status":"ssl_error","status_checked_at":"2026-04-15T15:24:39.138Z","response_time":63,"last_error":"SSL_read: 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":["deno","postgres","postgresql"],"created_at":"2025-07-27T16:12:59.266Z","updated_at":"2026-04-15T15:34:42.762Z","avatar_url":"https://github.com/mywaiting.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# psql\n\nDeno implementation of the Postgresql frontend-backend/client-server protocol\n\n## Getting started\n\n```typescript\n// deno run --allow-net --allow-read --unstable mod.ts\n\nimport { \n    Client,\n    ObjectCursor\n} from 'https://deno.land/x/psql/mod.ts'\n\nconst client = new Client({\n    host: 'localhost',\n    port: 5432,\n    user: 'postgres',\n    password: 'postgres'\n})\nawait client.connect()\n\n// simple query, result as array with default cursor\n{\n    const cursor = client.cursor()\n    const result = await cursor.query('select id, name from people')\n    console.log(result) // [[1, 'john'], [2, 'lucy'], ...]\n}\n\n// simple query with paramters, result as object with ObjectCursor\n// You play `psql` with with `es6 tagged template string`, which looks like magic.\n{\n    const objectCursor = client.cursor(ObjectCursor)\n    // const result = await objectCursor.query('select id, name from people where id \u003c $1', [3, ])\n    const result = await objectCursor.query`select id, name from people where id \u003c ${3}`\n    console.log(result) // [{id: 1, name: 'john'}, {id: 2, name: 'lucy'}]\n}\n\n// insert with paramters, return last insert id\n{\n    const cursor = client.cursor()\n    const sql = `insert into people (name, ) values ($1, ) returning id`\n    const result = await cursor.query(sql, ['david'])\n    console.log(result) // 3\n}\n\nawait client.close()\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmywaiting%2Fpsql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmywaiting%2Fpsql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmywaiting%2Fpsql/lists"}