dev: 增加删除功能

This commit is contained in:
Julian Freeman
2024-07-19 22:51:03 -04:00
parent dc96e1a747
commit 1fcb707472
11 changed files with 233 additions and 61 deletions

19
lib/sec_db_columns_def.py Normal file
View File

@@ -0,0 +1,19 @@
# coding: utf8
from .Sqlite3Helper import Column, DataType
sec_columns_d = {
"secret_id": Column("secret_id", DataType.INTEGER, primary_key=True, unique=True),
"filepath": Column("filepath", DataType.BLOB),
"password": Column("password", DataType.BLOB),
}
sec_all_columns = [
sec_columns_d["secret_id"],
sec_columns_d["filepath"],
sec_columns_d["password"],
]
insert_sec_columns = sec_all_columns[1:]
sec_filepath_col = sec_columns_d["filepath"]
sec_password_col = sec_columns_d["password"]