diff options
author | Gabriel Mazetto <brodock@gmail.com> | 2018-07-09 18:34:50 +0300 |
---|---|---|
committer | Gabriel Mazetto <brodock@gmail.com> | 2018-08-10 21:40:00 +0300 |
commit | 09e7c75d1bf871d0c011ea0f9abfb56fab03b919 (patch) | |
tree | fbd3cb4f6e35efeff03ca06693e152ce355409e9 /db | |
parent | a3c2b39d10fc3cdf4d50bd1d1157814fc10feeee (diff) |
MigrationHelper `disable_statement_timeout` accepts `transaction: false`
By default statement_timeout will only be enabled during transaction
lifetime, therefore not leaking outside of it.
With `transaction: false` it will set for entire session, but requires
a block to passed. It yields control and cleans up session after block
finishes, also preventing leaking outside of it.
Diffstat (limited to 'db')
0 files changed, 0 insertions, 0 deletions