cloudflare / cloudflare/workerd
Python workers: pgwasm working in local dev but failing in remote dev and deployment
- Dominant language
- C++
- Stars
- 8.7k
- Forks
- 739
- Avg merge
- 2d 20h
- Merged PRs (30d)
- 174
Description
I've been trying to connect a PG DB using [pgwasm](https://github.com/SubstructureOne/pgwasm) (which is based on pg8000 plus wasmsockets).
Since `requirements.txt` isn't supported yet, the necessary packages are bundled in a local `lib` folder, and I made some very small patches to pgwasm here (I added a `to_py()` call, and removed imports of some packages that aren't needed in my case).
This is now running nicely in the local dev environment, but failing at deploy-time for non-local dev and deploy. Is this expected? Is there anything I can do to fix it?
Code is here: https://github.com/jawj/pypgworker
I can provide DB credentials privately if useful, or any Neon DB will do.
Contributor guide
Assessment
This issue has not been assessed yet.