Two new APIs are available: Application.db(_:logger:) and Request.db(_:logger:). These work exactly the way the respective .db(_:) methods do, except the database's logger will be set to the one provided rather than the default. These APIs will hopefully make it easier to work around the unfortunate fact that Database.logging(to:) and its SQLKit counterpart basically don't work at all.
The --auto-migrate and --auto-revert commandline flags no longer call EventLoopFuture.wait() when the app is booted in async mode (no more crash risk).
These changes are now available in 4.11.0
This update contains the following changes:
Application.db(_:logger:)
andRequest.db(_:logger:)
. These work exactly the way the respective.db(_:)
methods do, except the database's logger will be set to the one provided rather than the default. These APIs will hopefully make it easier to work around the unfortunate fact thatDatabase.logging(to:)
and its SQLKit counterpart basically don't work at all.--auto-migrate
and--auto-revert
commandline flags no longer callEventLoopFuture.wait()
when the app is booted inasync
mode (no more crash risk).migrate
command now has nicer console output.async
.