def __init__(self, owner, options: options.TransactionOptions):
    if isinstance(owner, base_con.BaseConnection):
        self._connection = owner
        self._connection_inner = owner._inner
        self._pool = None
    else:
        self._connection = None
        self._connection_inner = None
        self._pool = owner
    self._connection_impl = None
    self._options = options
    self._state = TransactionState.NEW
    self._managed = False
def __init__(self, owner, options: options.TransactionOptions):
    if isinstance(owner, base_con.BaseConnection):
        self._connection = owner
        self._connection_inner = owner._inner
        self._pool = None
    else:
        self._connection = None
        self._connection_inner = None
        self._pool = owner
    self._connection_impl = None
    self._options = options
    self._state = TransactionState.NEW
    self._managed = False