{"id":27253520,"url":"https://github.com/awkweb/pg-cloudflare-issue","last_synced_at":"2025-04-11T01:55:16.673Z","repository":{"id":286728296,"uuid":"962355056","full_name":"awkweb/pg-cloudflare-issue","owner":"awkweb","description":null,"archived":false,"fork":false,"pushed_at":"2025-04-08T03:19:11.000Z","size":25,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-11T01:55:05.175Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://github.com/cloudflare/workers-sdk/issues/8840","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/awkweb.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-04-08T03:17:22.000Z","updated_at":"2025-04-08T04:40:36.000Z","dependencies_parsed_at":"2025-04-08T04:34:32.223Z","dependency_job_id":null,"html_url":"https://github.com/awkweb/pg-cloudflare-issue","commit_stats":null,"previous_names":["tmm/pg-cloudflare-issue","awkweb/pg-cloudflare-issue"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/awkweb%2Fpg-cloudflare-issue","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/awkweb%2Fpg-cloudflare-issue/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/awkweb%2Fpg-cloudflare-issue/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/awkweb%2Fpg-cloudflare-issue/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/awkweb","download_url":"https://codeload.github.com/awkweb/pg-cloudflare-issue/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248328108,"owners_count":21085258,"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":"2025-04-11T01:55:11.551Z","updated_at":"2025-04-11T01:55:16.666Z","avatar_url":"https://github.com/awkweb.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pg-cloudflare-issue\n\nClone repo and install dependencies:\n\n```\ngh repo clone tmm/pg-cloudflare-issue\npnpm i\n```\n\nUpdate `connectionString` in `test/index.spec.ts`, and run the following:\n\n```\npnpm test:pass\npnpm test:fail\n```\n\n```\nError: No such module \"Users/user/Desktop/worker/node_modules/.pnpm/pg@8.14.1/node_modules/pg/lib/pg-cloudflare\".\n ❯ getStream Users/user/Desktop/worker/node_modules/.pnpm/pg@8.14.1/node_modules/pg/lib/stream.js?mf_vitest_no_cjs_esm_shim:41:34\n ❯ new Connection Users/user/Desktop/worker/node_modules/.pnpm/pg@8.14.1/node_modules/pg/lib/connection.js?mf_vitest_no_cjs_esm_shim:18:36\n ❯ new Client Users/user/Desktop/worker/node_modules/.pnpm/pg@8.14.1/node_modules/pg/lib/client.js?mf_vitest_no_cjs_esm_shim:49:7\n ❯ BoundPool.newClient Users/user/Desktop/worker/node_modules/.pnpm/pg-pool@3.8.0_pg@8.14.1/node_modules/pg-pool/index.js?mf_vitest_no_cjs_esm_shim:222:20\n ❯ BoundPool.connect Users/user/Desktop/worker/node_modules/.pnpm/pg-pool@3.8.0_pg@8.14.1/node_modules/pg-pool/index.js?mf_vitest_no_cjs_esm_shim:216:10\n ❯ BoundPool.query Users/user/Desktop/worker/node_modules/.pnpm/pg-pool@3.8.0_pg@8.14.1/node_modules/pg-pool/index.js?mf_vitest_no_cjs_esm_shim:403:10\n ❯ test/index.spec.ts:8:28\n      6|   connectionString: \"postgresql://postgres:postgres@localhost:5432/postgres\",\n      7|  });\n      8|  const result = await pool.query(\"SELECT $1::text as name\", [\"cloudflare\"]);\n       |                            ^\n      9|  console.log(result.rows[0].name);\n     10| });\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fawkweb%2Fpg-cloudflare-issue","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fawkweb%2Fpg-cloudflare-issue","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fawkweb%2Fpg-cloudflare-issue/lists"}