essential-slick
essential-slick copied to clipboard
Consider mentioning withStatementParameters
From the Slick mailing list:
JDBC API includes
Statement.cancelandStatement.setQueryTimeouton individual statements so it would be beneficial to have them somewhat exposed in the API or configurationUpdate: 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.
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