mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2025-12-29 12:04:51 +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):
|
||||
def __init__(self, cursor: Cursor):
|
||||
super().__init__()
|
||||
self.cursor = cursor
|
||||
|
||||
async def fetchone(self):
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@ from typing import Union
|
|||
|
||||
class AsyncSqlite(Thread):
|
||||
def __init__(self, database: Union[str, Path], *args, **kwargs):
|
||||
super().__init__()
|
||||
self.connection = sqlite3.connect(database, *args, **kwargs)
|
||||
|
||||
async def commit(self):
|
||||
|
|
|
|||
Loading…
Reference in a new issue