Giter Club home page Giter Club logo

aioorm's People

Contributors

hsz1273327 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

caowenbin08

aioorm's Issues

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

当我使用事务的时候,
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'

get_or_create doesn't work

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.