latch-postgres 0.1.11__py3-none-any.whl → 0.1.12__py3-none-any.whl
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.
- latch_postgres/postgres.py +7 -0
- {latch_postgres-0.1.11.dist-info → latch_postgres-0.1.12.dist-info}/METADATA +1 -1
- latch_postgres-0.1.12.dist-info/RECORD +8 -0
- latch_postgres-0.1.11.dist-info/RECORD +0 -8
- {latch_postgres-0.1.11.dist-info → latch_postgres-0.1.12.dist-info}/LICENSE +0 -0
- {latch_postgres-0.1.11.dist-info → latch_postgres-0.1.12.dist-info}/WHEEL +0 -0
latch_postgres/postgres.py
CHANGED
|
@@ -218,6 +218,13 @@ class LatchAsyncConnection(AsyncConnection[Row]):
|
|
|
218
218
|
async def query_void(self, query: sql.SQL, **kwargs: Any) -> None:
|
|
219
219
|
await self.queryn(type(None), query, **kwargs)
|
|
220
220
|
|
|
221
|
+
async def query_unknown(self, query: sql.SQL, **kwargs: Any) -> Any:
|
|
222
|
+
async with self._query(JsonObject, query, **kwargs) as curs:
|
|
223
|
+
if curs.description is None:
|
|
224
|
+
return None
|
|
225
|
+
|
|
226
|
+
return await curs.fetchall()
|
|
227
|
+
|
|
221
228
|
|
|
222
229
|
@dataclass(frozen=True)
|
|
223
230
|
class EnumInfoQueryResponse:
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
latch_postgres/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
|
+
latch_postgres/postgres.py,sha256=1RVUNNqvw5CFRM6bD47DEThKGdXSkCwxNrjlPAAzZaw,24031
|
|
3
|
+
latch_postgres/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
4
|
+
latch_postgres/retries.py,sha256=r5yH00fd_6EJNYFXAq3dAljJBphScpoeST-_oMvyj8Q,1308
|
|
5
|
+
latch_postgres-0.1.12.dist-info/LICENSE,sha256=wh3JZu6ITG7ceN-1g404ekupj5JXAw4pnQ_Qr4sJfew,7052
|
|
6
|
+
latch_postgres-0.1.12.dist-info/WHEEL,sha256=vVCvjcmxuUltf8cYhJ0sJMRDLr1XsPuxEId8YDzbyCY,88
|
|
7
|
+
latch_postgres-0.1.12.dist-info/METADATA,sha256=mRRTGlNDI9N5ylZFoI7K__YtoAYVTgx48Le57E83hzs,766
|
|
8
|
+
latch_postgres-0.1.12.dist-info/RECORD,,
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
latch_postgres/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
|
-
latch_postgres/postgres.py,sha256=SWlHn2wPUf7iUXTKZ2Sz6bSy-8YtPfkLklMYpRq00ak,23777
|
|
3
|
-
latch_postgres/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
4
|
-
latch_postgres/retries.py,sha256=r5yH00fd_6EJNYFXAq3dAljJBphScpoeST-_oMvyj8Q,1308
|
|
5
|
-
latch_postgres-0.1.11.dist-info/LICENSE,sha256=wh3JZu6ITG7ceN-1g404ekupj5JXAw4pnQ_Qr4sJfew,7052
|
|
6
|
-
latch_postgres-0.1.11.dist-info/WHEEL,sha256=vVCvjcmxuUltf8cYhJ0sJMRDLr1XsPuxEId8YDzbyCY,88
|
|
7
|
-
latch_postgres-0.1.11.dist-info/METADATA,sha256=vzIPm8U7qyzkLySFnSAhtQp-3NTuygOwHDPQl-USlBc,766
|
|
8
|
-
latch_postgres-0.1.11.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|