Switch to Asyncpg for db con

This commit is contained in:
Dustin Pianalto
2018-05-21 19:28:01 -08:00
parent 5e5f50bcc0
commit 7949707a3c
3 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -11,8 +11,8 @@ class DatabaseConnection:
asyncio.get_event_loop().run_until_complete(self.acquire())
self.fetchval = self._conn.fetchval
self.execute = self._conn.execute
self.fetchall = self._conn.fetchall
self.fetchone = self._conn.fetchone
self.fetch = self._conn.fetch
self.fetchrow = self._conn.fetchrow
async def acquire(self):
if not self._conn: