vapor / fluent-mysql-driver

🖋🐬 Swift ORM (queries, models, relations, etc) built on MySQL.
MIT License
77 stars 52 forks source link

Support connection pool timeout configuration #187

Closed tanner0101 closed 4 years ago

tanner0101 commented 4 years ago

Adds connectionPoolTimeout (TimeAmount) parameter to MySQL configuration methods (#187).

app.databases.use(.mysql(..., connectionPoolTimeout: .seconds(10))
tanner0101 commented 4 years ago

Related to https://github.com/vapor/fluent-postgres-driver/pull/161

tanner0101 commented 4 years ago

These changes are now available in 4.0.0-rc.2.1