postgreslite 0.1.3__tar.gz → 0.1.4__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: postgreslite
3
- Version: 0.1.3
3
+ Version: 0.1.4
4
4
  Summary: Python SQLite combined with syntax compared to asyncpg progject.
5
5
  Author: AlexFlipnote
6
6
  License-File: LICENSE
@@ -2,4 +2,4 @@
2
2
  from .handler import *
3
3
  from .pool import *
4
4
 
5
- __version__ = "0.1.3"
5
+ __version__ = "0.1.4"
@@ -49,7 +49,7 @@ class PostgresLite:
49
49
  db = conn.cursor()
50
50
  return PoolConnection(db)
51
51
 
52
- async def connect_async(self) -> AsyncPoolConnection:
52
+ def connect_async(self) -> AsyncPoolConnection:
53
53
  """ Makes a connection to the database and returns the pool (async) """
54
54
  conn = sqlite3.connect(
55
55
  self._filename,
@@ -101,7 +101,8 @@ class AsyncPoolConnection(PoolConnection):
101
101
  await self._queue.put((query, args, future))
102
102
 
103
103
  try:
104
- return await future
104
+ await future
105
+ return future.result()
105
106
  except Exception:
106
107
  raise future.exception()
107
108
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: postgreslite
3
- Version: 0.1.3
3
+ Version: 0.1.4
4
4
  Summary: Python SQLite combined with syntax compared to asyncpg progject.
5
5
  Author: AlexFlipnote
6
6
  License-File: LICENSE
File without changes
File without changes
File without changes
File without changes