If you need to perform several operations within a single
transaction, you can pass a function to the method
Sql.transaction. All statements of the function will
be executed within a transaction, using the same JDBC
connection, and finally the transaction is committed iff
the function returns true: