Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for Cloudflare Workers #599

Merged
merged 26 commits into from
Jul 5, 2023
Merged

Support for Cloudflare Workers #599

merged 26 commits into from
Jul 5, 2023

Conversation

porsager
Copy link
Owner

Initial support for using Postgres.js in Cloudflare Workers (tcp support was just released today).

@superboss224
Copy link

Hello !
Is the update with cloudflare workers already done ?

Thank you for your fast update !

@daniel-xyz
Copy link

That's awesome. Hopefully that means it'll soon work on Vercel Edge Functions too, since they're built on top of Cloudflare Workers as far as I know. 👀

porsager and others added 15 commits July 2, 2023 23:01
- add links for the official documentation
- escape the backtick character
- change the subtitle to "await sql``.simple()" instead of "await sql`select 1; select 2;`.simple()" (to be coherent with the other subtitles)
- add a small example below
* create beginPrepared function

* change implementation to new method

* add prepare method type to TransactionSql

* add documentations and test

* fix test

* enable prepared transactions in the bootstrap script

* enable prepared transactions in the github actions setup file

* fix github actions

* fix github actions yml file
* Reworked from source cloudflare branch
feat: reran transpile
fix linter
feat: final touches + test files

squashed 2 commits
fix: Polyfills bulk (to please linter)
fix: Removed MD5 + put back SHA in the digest()

squashed 5 commits
fix: cloudflare workers deployment
feat: fixed auth
fix: encrypt not found in worker :(
fix: postgres SASL
fix: linting

* fix: merge cleanup

---------

Co-authored-by: wackfx <hello@wackfx.com>
@porsager
Copy link
Owner Author

porsager commented Jul 5, 2023

Ok, I think we're about there with the great work from @wackfx !

It would be nice to have a small section in the README.md about it as well, if anyone is up for that? Perhaps a separate PR, so we can get this merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants