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

supabase-kysely with postgresjs #2

Merged
merged 2 commits into from
Nov 11, 2024
Merged

supabase-kysely with postgresjs #2

merged 2 commits into from
Nov 11, 2024

Conversation

wataruoguchi
Copy link
Owner

It's not yet tested with Cloudflare runtime but Node.js.

Tricky things:

  • During development, the runtime is Node.js (Not Cloudflare Workers). I needed to swap the postgres package's modules by adding an alias in vite.config.ts
  • The connection does not get established immediately. Adding reserved.unsafe("SELECT 1") in lib/db.ts had worked.

Relevant issues:

@wataruoguchi
Copy link
Owner Author

porsager/postgres#944 is required if I want to keep using reserve (which has been removed with the 2nd commit)

@wataruoguchi wataruoguchi merged commit cc19baf into main Nov 11, 2024
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.

1 participant