云端粗出
This commit is contained in:
0
python_core/database/__init__.py
Normal file
0
python_core/database/__init__.py
Normal file
10
python_core/database/db.py
Normal file
10
python_core/database/db.py
Normal file
@@ -0,0 +1,10 @@
|
||||
|
||||
from python_core.kv import kv
|
||||
|
||||
class Db:
|
||||
|
||||
def __init__(self, key: str):
|
||||
self.kv = kv
|
||||
self.key = key
|
||||
pass
|
||||
|
||||
13
python_core/database/template.py
Normal file
13
python_core/database/template.py
Normal file
@@ -0,0 +1,13 @@
|
||||
|
||||
from python_core.kv import kv
|
||||
from .db import Db
|
||||
|
||||
|
||||
# 模板管理
|
||||
# 实现模板的增删改查
|
||||
# 主键 是模板的ID uuid
|
||||
class TemplateDb(Db):
|
||||
|
||||
def __init__(self):
|
||||
self.key = "templates"
|
||||
pass
|
||||
Reference in New Issue
Block a user