Closed tanner0101 closed 7 years ago
Relies on https://github.com/vapor/fluent-provider/pull/4
Makes the driver this provider adds configurable. To use the driver, you must have a fluent.json that contains.
fluent.json
{ "driver": "mysql" }
Max connections is also configurable now, in the fluent.json as well.
To avoid configuration files, simply:
let drop = Droplet() let mysql = MySQLDriver(...) drop.database = Database(mysql)
Relies on https://github.com/vapor/fluent-provider/pull/4
fluent.json
Makes the driver this provider adds configurable. To use the driver, you must have a
fluent.json
that contains.maxConnections
Max connections is also configurable now, in the
fluent.json
as well.Manual
To avoid configuration files, simply: