Skip to content
This repository was archived by the owner on Feb 7, 2023. It is now read-only.
This repository was archived by the owner on Feb 7, 2023. It is now read-only.

当我使用事务的时候, 遇到了点问题 #2

@wkmx

Description

@wkmx

当我使用事务的时候,
with database.atomic(): pass

Traceback (most recent call last): File "pee.py", line 42, in <module> with database.atomic() as f: File "/opt/pyVirtualenv/peewee/lib/python3.6/site-packages/peewee.py", line 4445, in __enter__ if self.db.transaction_depth() == 0: File "/opt/pyVirtualenv/peewee/lib/python3.6/site-packages/peewee.py", line 3880, in transaction_depth return len(self._local.transactions) AttributeError: 'AioMySQLDatabase' object has no attribute '_local'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions