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

Ability to easily switch branches for local development #110

Open
mscoutermarsh opened this issue Apr 28, 2023 · 2 comments
Open

Ability to easily switch branches for local development #110

mscoutermarsh opened this issue Apr 28, 2023 · 2 comments

Comments

@mscoutermarsh
Copy link
Member

mscoutermarsh commented Apr 28, 2023

Currently, database.js is not compatible with pscale connect because they are entirely different protocols (http vs mysql).

One pain point when using database.js for local development is quickly switching branches. Ideally, we'd find a solution where developers do not have to create & copy/paste connection strings into their code to swap branches.

Opening this issue so that: 1. People find it when googling. 2. to track the discussion in one place.

Other context:

@itsjxck
Copy link

itsjxck commented Apr 29, 2023

I would love to see the ability with pscale connect to proxy the http endpoint as well. Ideally it would be great to be able to choose between proxying mysql or http or both through options. Couple that with the ability to override the port during config of @planetscale/database would be perfect. Means the DATABASE_URL env var can still be your standard proxied connection string that can be used for direct db connections, but we can override the port for @planetscale/database which would let us connect through the additional proxy.

@mattrobenolt
Copy link
Member

mattrobenolt commented Oct 19, 2023

For those wanting to give some early feedback, I've published some very early release of something I've been working on here:

https://github.com/mattrobenolt/ps-http-sim

Very much would like to get feedback at this point and iron out bugs.

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

No branches or pull requests

3 participants