-
Notifications
You must be signed in to change notification settings - Fork 39
Closed
Description
Basically this:
import { connect } from '@planetscale/database'
const config = {
url: 'http://user:password@localhost:3000'
}
const conn = connect(config)
Because....
We're using a home-grown Docker image to allow us to build with @planetscale/database
while in offline situations (like the 14 hour flight I was just on)- it's a dumb express
server that emulates, as far as we can tell, the current API this package uses. Obviously understanding the API isn't documented, is not really intended for this and is subject to change etc, it would still be good if this package didn't assume the connection URL is an https
one when using the config.url
value with a valid http
/https
string.
I've got a fork that implements it (and adds a test), but wanted to float the idea before submitting a PR.
Metadata
Metadata
Assignees
Labels
No labels