update: 增加了对Deta的数据库支持和修改了一点文档

This commit is contained in:
RTAkland
2022-12-22 17:02:00 +08:00
parent 7adcc1b39a
commit ea7f3ababa
6 files changed
+44 -14

No files matched your search

+4 -1
View File
@@ -56,7 +56,10 @@ class BaseSQL:
class SQLite(BaseSQL):
def __init__(self):
super().__init__()
self.conn = operator.connect('./src/db/data.sqlite')
if Config.DETA:
self.conn = operator.connect('/tmp/data.sqlite')
else:
self.conn = operator.connect('./src/db/data.sqlite')
self.cursor = self.conn.cursor()