dev: 初步支持加载kps
This commit is contained in:
23
lib/db_columns_def.py
Normal file
23
lib/db_columns_def.py
Normal file
@@ -0,0 +1,23 @@
|
||||
# coding: utf8
|
||||
from .Sqlite3Helper import Column, DataType
|
||||
|
||||
columns_d = {
|
||||
"entry_id": Column("entry_id", DataType.INTEGER, primary_key=True),
|
||||
"title": Column("title", DataType.BLOB),
|
||||
"username": Column("username", DataType.BLOB),
|
||||
"password": Column("password", DataType.BLOB),
|
||||
"opt": Column("opt", DataType.TEXT),
|
||||
"url": Column("url", DataType.BLOB),
|
||||
"notes": Column("notes", DataType.BLOB),
|
||||
"path": Column("path", DataType.BLOB, nullable=False),
|
||||
}
|
||||
all_columns = [
|
||||
columns_d["entry_id"],
|
||||
columns_d["title"],
|
||||
columns_d["username"],
|
||||
columns_d["password"],
|
||||
columns_d["opt"],
|
||||
columns_d["url"],
|
||||
columns_d["notes"],
|
||||
columns_d["path"],
|
||||
]
|
||||
Reference in New Issue
Block a user