@@ 15,7 15,12 @@ called, executing all registered migrations.
and calling conn:close returns it to the pool if possible.
The fields are max\_idle, max\_open, idle\_timeout and
life\_timeout. Defaults are respectively 2, 0 (unlimited),
- 0 (no timeout) and 0 (no timeout).
+ 0 (no timeout) and 0 (no timeout). A release\_connection field
+ can also be set to a function, and it will be called prior to
+ return a connection to the pool. It can be used to e.g. reset
+ session settings, rollback any pending transaction, or release
+ any locks. It receives the connection instance and the app
+ instance as arguments.
# API Extensions