doc and jsondb

This commit is contained in:
哆啦好梦
2023-04-26 10:04:15 +08:00
parent 7916c1eb16
commit 6b0363ca1f
3 changed files with 17 additions and 21 deletions

View File

@@ -14,13 +14,13 @@ class StorageService extends Service {
constructor (ctx) {
super(ctx);
// lowdb数据库
// jsondb数据库
this.systemDB = Storage.connection('system');
let lowdbOptions = {
driver: 'lowdb'
let jsondbOptions = {
driver: 'jsondb'
}
this.demoDB = Storage.connection('demo', lowdbOptions);
this.demoDB = Storage.connection('demo', jsondbOptions);
this.demoDBKey = {
test_data: 'test_data'
};