Driver lưu trữ dữ liệu bằng SQLite.
⚠️ Đây không phải database chính. Class này chỉ là driver lưu trữ phụ trợ cho Database.
Database
Logic xử lý dữ liệu như:
sẽ được thực hiện bởi class Database.
Driver này chỉ:
Toàn bộ database được lưu trong một row duy nhất.
const database = new Database({ driver: new SQLiteDriver({ filePath: "database.sqlite", table: "json_store" })}) Copy
const database = new Database({ driver: new SQLiteDriver({ filePath: "database.sqlite", table: "json_store" })})
Khởi tạo SQLiteDriver.
Lấy toàn bộ dữ liệu database từ SQLite.
Kiểu dữ liệu database.
Reset toàn bộ database.
Ghi toàn bộ database vào SQLite.
⚠️ Method này không xử lý key-path. Database đã cập nhật object trước khi truyền vào đây.
Toàn bộ database object
Driver lưu trữ dữ liệu bằng SQLite.
⚠️ Đây không phải database chính. Class này chỉ là driver lưu trữ phụ trợ cho
Database.Logic xử lý dữ liệu như:
sẽ được thực hiện bởi class
Database.Driver này chỉ:
Toàn bộ database được lưu trong một row duy nhất.
Example