Новый движок БД

This commit is contained in:
Book Pauk
2021-11-24 14:15:09 +07:00
parent 609334c5a6
commit 0b6a726503
14 changed files with 4065 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
class TableFlag {
constructor(checkCode) {
this.checkCode = checkCode;
this.checkFunc = eval(checkCode);
this.flag = new Set();
}
add(row) {
if (this.checkFunc(row)) {
this.flag.add(row.id);
return true;
}
return false;
}
del(row) {
this.flag.delete(row.id);
}
}
module.exports = TableFlag;