fastasyncpg 0.0.7__tar.gz → 0.0.8__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {fastasyncpg-0.0.7/fastasyncpg.egg-info → fastasyncpg-0.0.8}/PKG-INFO +1 -1
- fastasyncpg-0.0.8/fastasyncpg/__init__.py +1 -0
- {fastasyncpg-0.0.7 → fastasyncpg-0.0.8}/fastasyncpg/core.py +3 -1
- {fastasyncpg-0.0.7 → fastasyncpg-0.0.8/fastasyncpg.egg-info}/PKG-INFO +1 -1
- fastasyncpg-0.0.7/fastasyncpg/__init__.py +0 -1
- {fastasyncpg-0.0.7 → fastasyncpg-0.0.8}/LICENSE +0 -0
- {fastasyncpg-0.0.7 → fastasyncpg-0.0.8}/MANIFEST.in +0 -0
- {fastasyncpg-0.0.7 → fastasyncpg-0.0.8}/README.md +0 -0
- {fastasyncpg-0.0.7 → fastasyncpg-0.0.8}/fastasyncpg/_modidx.py +0 -0
- {fastasyncpg-0.0.7 → fastasyncpg-0.0.8}/fastasyncpg.egg-info/SOURCES.txt +0 -0
- {fastasyncpg-0.0.7 → fastasyncpg-0.0.8}/fastasyncpg.egg-info/dependency_links.txt +0 -0
- {fastasyncpg-0.0.7 → fastasyncpg-0.0.8}/fastasyncpg.egg-info/entry_points.txt +0 -0
- {fastasyncpg-0.0.7 → fastasyncpg-0.0.8}/fastasyncpg.egg-info/requires.txt +0 -0
- {fastasyncpg-0.0.7 → fastasyncpg-0.0.8}/fastasyncpg.egg-info/top_level.txt +0 -0
- {fastasyncpg-0.0.7 → fastasyncpg-0.0.8}/pyproject.toml +0 -0
- {fastasyncpg-0.0.7 → fastasyncpg-0.0.8}/setup.cfg +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "0.0.8"
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
"""Docs: https://AnswerDotAI.github.io/fastasyncpgcore.html.md"""
|
|
2
|
+
|
|
1
3
|
# AUTOGENERATED! DO NOT EDIT! File to edit: ../nbs/00_core.ipynb.
|
|
2
4
|
|
|
3
5
|
# %% auto #0
|
|
@@ -713,9 +715,9 @@ async def claim_one(self:Table, status_col='status', pending='pending', complete
|
|
|
713
715
|
tbl = txn.t[self.name]
|
|
714
716
|
p.db = txn
|
|
715
717
|
p.evt = await tbl.claim(where=f'"{status_col}"=$1', where_args=[pending], order_by=order_by)
|
|
718
|
+
if p.evt is None: return
|
|
716
719
|
try: yield p
|
|
717
720
|
except Exception as e: p.failed, p.exc, p.tb = True, e, traceback.format_exc()
|
|
718
|
-
if p.evt is None: return
|
|
719
721
|
pk = self.pks[0]
|
|
720
722
|
new = failed if p.failed else (None if p.retry else completed)
|
|
721
723
|
stmt = f'UPDATE {self} SET "{status_col}"=$1 WHERE "{pk}"=$2'
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "0.0.7"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|