You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think either providing a helper such as configFromEnv('DATABASE_URL') or something along these lines to parse a config in a traditional mysql://user:pass@host would be nice for configuration, we can even be a bit more planetscale specific with our URI such as pscale://user:pass@aws.connect.psdb.cloud. I don't personally have an opinion if this is it's own thing like:
connect(configFromEnv())
Or built into the config such as:
connect({uri: env['DATABASE_URL']})
Up to whatever you think is most common or would be most desirable to adopt.
This would allow simplifying an application config with one variable instead of 3 different ones, and we can leverage the already standard DATABASE_URL that's established.
The text was updated successfully, but these errors were encountered:
Parse a database URL into host, username, and password configuration
values. This allows the app to configure a single environment variable
rather than three.
Closes#26.
I think either providing a helper such as
configFromEnv('DATABASE_URL')
or something along these lines to parse a config in a traditionalmysql://user:pass@host
would be nice for configuration, we can even be a bit more planetscale specific with our URI such aspscale://user:pass@aws.connect.psdb.cloud
. I don't personally have an opinion if this is it's own thing like:Or built into the config such as:
Up to whatever you think is most common or would be most desirable to adopt.
This would allow simplifying an application config with one variable instead of 3 different ones, and we can leverage the already standard
DATABASE_URL
that's established.The text was updated successfully, but these errors were encountered: