python-tools / aioorm Goto Github PK
View Code? Open in Web Editor NEWa fork of aiopeewee-0.3.5,support postgresql
Home Page: https://python-tools.github.io/aioorm/
License: Mozilla Public License 2.0
a fork of aiopeewee-0.3.5,support postgresql
Home Page: https://python-tools.github.io/aioorm/
License: Mozilla Public License 2.0
当我使用事务的时候,
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'
Where 在哪里?
2017-10-23 19:34:58 - (sanic)[ERROR]: Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/sanic/app.py", line 503, in handle_request
response = await response
File "/home/bauerj/PycharmProjects/crashhub/lib/routes.py", line 25, in store_crash
kind, created = await CrashKind.get_or_create(**crash["filter"])
File "/usr/lib/python3.6/site-packages/aioorm/model.py", line 91, in get_or_create
return await query.get(), False
File "/usr/lib/python3.6/site-packages/aioorm/query.py", line 105, in get
return await qr.__anext__()
File "/usr/lib/python3.6/site-packages/aioorm/result.py", line 90, in __anext__
obj = await self.iterate()
File "/usr/lib/python3.6/site-packages/aioorm/result.py", line 71, in iterate
raise StopAsyncIteration
StopAsyncIteration
Neither does get
, as it seems.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.