latch-postgres 0.1.10__tar.gz → 0.1.12__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: latch-postgres
3
- Version: 0.1.10
3
+ Version: 0.1.12
4
4
  Summary: Postges wrapper for latch python backend services
5
5
  License: CC0 1.0
6
6
  Author: Max Smolin
@@ -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:
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "latch-postgres"
3
- version = "0.1.10"
3
+ version = "0.1.12"
4
4
  description = "Postges wrapper for latch python backend services"
5
5
  authors = ["Max Smolin <max@latch.bio>"]
6
6
  license = "CC0 1.0"
@@ -18,7 +18,7 @@ install_requires = \
18
18
 
19
19
  setup_kwargs = {
20
20
  'name': 'latch-postgres',
21
- 'version': '0.1.10',
21
+ 'version': '0.1.12',
22
22
  'description': 'Postges wrapper for latch python backend services',
23
23
  'long_description': '# python-postgres\n',
24
24
  'author': 'Max Smolin',
File without changes