vapor-community / mysql-provider

MySQL provider for the Vapor web framework.
MIT License
30 stars 12 forks source link

Initialize value via mysql:// url #3

Closed edjiang closed 7 years ago

edjiang commented 8 years ago

I use heroku a lot, so many times I get a URL like:

mysql://user:password@hostname:port/databaseName

I'd like to pass that into VaporMySQL instead of the other initializer:

let mysql = try VaporMySQL.Provider(url: "mysql://user:password@hostname:port/databaseName")
tanner0101 commented 7 years ago

This has been added.