datafolder 1.0.44 → 1.0.45
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ChangeLog.md +2 -0
- package/package.json +1 -1
- package/scripts/fastify.js +2 -2
- package/src/QyBatch.d.ts +19 -15
- package/src/QyBatch.js +190 -181
- package/src/QyCache.d.ts +13 -13
- package/src/QyCache.js +107 -122
- package/src/QyDB.js +6 -6
- package/src/QyDir.d.ts +5 -3
- package/src/QyDir.js +136 -156
- package/src/QyEmbeddings.d.ts +1 -1
- package/src/QyEmbeddings.js +4 -13
- package/src/QyExpireInfo.d.ts +5 -3
- package/src/QyExpireInfo.js +59 -60
- package/src/{QyExpire.d.ts → QyExpireMonitor.d.ts} +7 -7
- package/src/{QyExpire.js → QyExpireMonitor.js} +32 -35
- package/src/QyExpireProcessor_Worker.d.ts +1 -1
- package/src/QyExpireProcessor_Worker.js +43 -47
- package/src/QyFile.d.ts +4 -0
- package/src/QyFile.js +60 -46
- package/src/QyIndex.js +17 -17
- package/src/QyItem.d.ts +1 -1
- package/src/QyItem.js +32 -34
- package/src/QyKVData.d.ts +3 -3
- package/src/QyKVData.js +10 -10
- package/src/QyKVDataCleaner_Worker.js +13 -13
- package/src/QySnapshots.d.ts +1 -1
- package/src/QySnapshots.js +1 -1
- package/src/QyUtils.d.ts +5 -12
- package/src/QyUtils.js +101 -108
package/ChangeLog.md
CHANGED
package/package.json
CHANGED
package/scripts/fastify.js
CHANGED
|
@@ -16,9 +16,9 @@ const { port, staticRoot } = config;
|
|
|
16
16
|
const fastify = Fastify({ logger: false, forceCloseConnections: true });
|
|
17
17
|
// const qyDB = new QyDB(join(__dirname, "../tmp/flights2"));
|
|
18
18
|
// const qyDB = new QyDB(join(__dirname, "../tmp/QyIndex/1"));
|
|
19
|
-
|
|
19
|
+
const qyDB = new QyDB(join(__dirname, "../tmp/QyExpire/1"));
|
|
20
20
|
// const qyDB = new QyDB("C:\\tmp\\hackernews");
|
|
21
|
-
const qyDB = new QyDB();
|
|
21
|
+
// const qyDB: any = new QyDB();
|
|
22
22
|
let sigintReceived = false;
|
|
23
23
|
process.on("SIGINT", async () => {
|
|
24
24
|
logger.log("SIGINT signal received: closing HTTP server");
|
package/src/QyBatch.d.ts
CHANGED
|
@@ -1,15 +1,18 @@
|
|
|
1
1
|
import { QyAclCmdGenerator } from "./QyAcl.ts";
|
|
2
2
|
import { QyCD } from "./QyCD.ts";
|
|
3
|
+
import type { QyItem } from "./QyItem.ts";
|
|
4
|
+
import type { QyFile } from "./QyFile.ts";
|
|
5
|
+
import type { QyDir } from "./QyDir.ts";
|
|
3
6
|
export declare class QyBatch extends QyCD {
|
|
7
|
+
options: any;
|
|
4
8
|
fileLogLevel: any;
|
|
5
|
-
changeId:
|
|
9
|
+
changeId: number;
|
|
6
10
|
aqIdx: number;
|
|
11
|
+
running: boolean;
|
|
7
12
|
actionQueue: any[];
|
|
8
13
|
fileDeltaList: any[];
|
|
9
14
|
syncList: any[];
|
|
10
15
|
logList: any[];
|
|
11
|
-
running: any;
|
|
12
|
-
options: any;
|
|
13
16
|
qyAclCmdGenerator: QyAclCmdGenerator;
|
|
14
17
|
constructor(qyCache?: any, options?: any);
|
|
15
18
|
createDir(namePath: any): QyBatch;
|
|
@@ -22,13 +25,14 @@ export declare class QyBatch extends QyCD {
|
|
|
22
25
|
expireDirM(namePath: any, milliSecond: number): QyBatch;
|
|
23
26
|
expireContent(namePath: any, expireInfoObj: any, isMilliSecond: any): QyBatch;
|
|
24
27
|
expireContentM(namePath: any, expireInfoObj: any): QyBatch;
|
|
25
|
-
removeFileExpire(namePath: any
|
|
26
|
-
removeDirExpire(namePath: any
|
|
27
|
-
removeContentExpire(namePath: any, expireInfoObj
|
|
28
|
+
removeFileExpire(namePath: any): QyBatch;
|
|
29
|
+
removeDirExpire(namePath: any): QyBatch;
|
|
30
|
+
removeContentExpire(namePath: any, expireInfoObj?: any, fromMonitor?: boolean): QyBatch;
|
|
28
31
|
createIndex(indexHostDirNamePath: any, indexPropPathList: any): QyBatch;
|
|
29
32
|
createIndexByQuery(indexHostDirNamePath: any, queryObj: any): QyBatch;
|
|
30
33
|
delIndex(indexHostDirNamePath: any, indexPropPath: any): QyBatch;
|
|
31
34
|
insert(namePath: any, content: any): QyBatch;
|
|
35
|
+
setProp(namePath: any, propName: any, value: any): QyBatch;
|
|
32
36
|
insertEmbedding(namePath: any, embedding: any): QyBatch;
|
|
33
37
|
delEmbedding(namePath: any): QyBatch;
|
|
34
38
|
insertWithEmbedding(namePath: any, content: any, embedding: any): QyBatch;
|
|
@@ -45,17 +49,17 @@ export declare class QyBatch extends QyCD {
|
|
|
45
49
|
_action_createIndex(indexHostDir: any, indexPropPathList: any): void;
|
|
46
50
|
_action_createIndexByQuery(indexHostDir: any, queryObj: any): void;
|
|
47
51
|
_action_delIndex(indexHostDir: any, indexPropPath: any): void;
|
|
48
|
-
_action_delFile(file:
|
|
52
|
+
_action_delFile(file: QyFile, deletingParentDir?: boolean): boolean;
|
|
49
53
|
_action_delDir(dir: any): boolean;
|
|
50
|
-
_action_delContent(file:
|
|
51
|
-
_action_insertEmbedding(srcFile:
|
|
54
|
+
_action_delContent(file: QyFile): boolean;
|
|
55
|
+
_action_insertEmbedding(srcFile: QyFile, embedding: any): boolean;
|
|
52
56
|
_action_delEmbedding(srcFile: any): true | undefined;
|
|
53
57
|
_action_setProp(file: any, propName: any, value: any): any;
|
|
54
58
|
_action_insert(file: any, content: any): boolean;
|
|
55
|
-
_action_createFile(file:
|
|
56
|
-
_action_createDir(dir:
|
|
57
|
-
_action_expireItem(item:
|
|
58
|
-
_action_removeItemExpire(item: any
|
|
59
|
-
_action_expireContent(file: any, expireInfoObj: any, isMilliSecond: any): boolean;
|
|
60
|
-
_action_removeContentExpire(file: any, expireInfoObj: any,
|
|
59
|
+
_action_createFile(file: QyFile): boolean;
|
|
60
|
+
_action_createDir(dir: QyDir): boolean;
|
|
61
|
+
_action_expireItem(item: QyItem, milliSecond: any): boolean;
|
|
62
|
+
_action_removeItemExpire(item: any): boolean;
|
|
63
|
+
_action_expireContent(file: any, expireInfoObj: any, isMilliSecond: any): boolean | undefined;
|
|
64
|
+
_action_removeContentExpire(file: any, expireInfoObj: any | undefined, fromMonitor: any): boolean | undefined;
|
|
61
65
|
}
|