mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2026-01-06 23:24:50 +00:00
PyroFork: storage: sqlite: fix derps
Signed-off-by: wulan17 <wulan17@nusantararom.org>
This commit is contained in:
parent
69c49b91e3
commit
fb5aff5e21
2 changed files with 2 additions and 0 deletions
|
|
@ -4,6 +4,7 @@ from threading import Thread
|
||||||
|
|
||||||
class AsyncCursor(Thread):
|
class AsyncCursor(Thread):
|
||||||
def __init__(self, cursor: Cursor):
|
def __init__(self, cursor: Cursor):
|
||||||
|
super().__init__()
|
||||||
self.cursor = cursor
|
self.cursor = cursor
|
||||||
|
|
||||||
async def fetchone(self):
|
async def fetchone(self):
|
||||||
|
|
|
||||||
|
|
@ -7,6 +7,7 @@ from typing import Union
|
||||||
|
|
||||||
class AsyncSqlite(Thread):
|
class AsyncSqlite(Thread):
|
||||||
def __init__(self, database: Union[str, Path], *args, **kwargs):
|
def __init__(self, database: Union[str, Path], *args, **kwargs):
|
||||||
|
super().__init__()
|
||||||
self.connection = sqlite3.connect(database, *args, **kwargs)
|
self.connection = sqlite3.connect(database, *args, **kwargs)
|
||||||
|
|
||||||
async def commit(self):
|
async def commit(self):
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue