essential-slick icon indicating copy to clipboard operation
essential-slick copied to clipboard

Consider mentioning withStatementParameters

Open d6y opened this issue 10 years ago • 1 comments

From the Slick mailing list:

JDBC API includes Statement.cancel and Statement.setQueryTimeout on individual statements so it would be beneficial to have them somewhat exposed in the API or configuration

Update: Have overlooked options to set query timeout in the Slick API. For those having same needs call withStatementParameters(statementInit = st => st.setQueryTimeout(XXX)) on an instance of DBIOAction.

d6y avatar Jul 17 '15 12:07 d6y

Sort of realated is withTransactionIsoluation.

Also note trick regarding ordering of calls:

.transactionally
.withTransactionIsolation(TransactionIsolation.Serializable)

...not the other way round: https://groups.google.com/forum/#!msg/scalaquery/gJPEDoEPRBA/Dfdzca_dBwAJ

d6y avatar Mar 01 '17 17:03 d6y