Skip to content

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 <[email protected]>
@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.

7 participants