begin

fun begin()

Opens a transaction with the session's default access mode (SET SESSION CHARACTERISTICS), or none. setTransactionReadOnly and setTransactionReadWrite shape it until its first query or write.

Throws

if a transaction is already open.