GitHub

BeginTransaction

API reference for BeginTransaction.

The statement that starts outermost transactions in place of the client's BEGIN, such as BEGIN ISOLATION LEVEL SERIALIZABLE. It runs unprepared; savepoints ignore it. MySQL can't set an isolation level in START TRANSACTION, so its client runs a SET TRANSACTION statement before its BEGIN. Provide it around the one with_transaction it is for, and never build it from untrusted input.

Functions

default

default() -> str | None

Returns str | None

@classmethod
def default(cls) -> str | None:
    return None