Skip to content

Ability to easily switch branches for local development #110

Open

Description

@mscoutermarsh

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:

Activity

  1. itsjxck commented on Apr 29, 2023

    @itsjxck

    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.

  2. mattrobenolt commented on Oct 19, 2023

    @mattrobenolt
    Member

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions