datafolder 1.0.8 → 1.0.10

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.
Files changed (82) hide show
  1. package/README.md +4 -2
  2. package/SSD.md +60 -0
  3. package/index.js +1 -0
  4. package/package.json +1 -1
  5. package/sample.js +4 -4
  6. package/scripts/airbnb.js +1 -0
  7. package/scripts/airbnb2.js +1 -0
  8. package/scripts/convertBinFiles.js +1 -0
  9. package/scripts/express.js +2 -1
  10. package/scripts/fastify.js +3 -2
  11. package/scripts/flights.js +1 -0
  12. package/scripts/flights2.js +1 -0
  13. package/scripts/flights_queries.js +1 -0
  14. package/src/QyAcl.d.ts +3 -3
  15. package/src/QyAcl.js +7 -7
  16. package/src/QyAclSaver_Worker.d.ts +1 -0
  17. package/src/QyAclSaver_Worker.js +1 -0
  18. package/src/QyAclWriter.d.ts +2 -1
  19. package/src/QyAclWriter.js +7 -6
  20. package/src/QyBatch.d.ts +29 -22
  21. package/src/QyBatch.js +85 -72
  22. package/src/QyBinWriter.d.ts +9 -4
  23. package/src/QyBinWriter.js +83 -70
  24. package/src/QyCD.d.ts +19 -19
  25. package/src/QyCD.js +2 -2
  26. package/src/QyCache.d.ts +22 -23
  27. package/src/QyCache.js +47 -36
  28. package/src/QyCompressor_Worker.js +2 -2
  29. package/src/QyDB.d.ts +6 -9
  30. package/src/QyDB.js +1 -1
  31. package/src/QyFile.d.ts +2 -0
  32. package/src/QyFile.js +42 -40
  33. package/src/QyFileContentUtils.d.ts +1 -4
  34. package/src/QyFileLogger.d.ts +4 -0
  35. package/src/QyFileLogger.js +30 -26
  36. package/src/QyIndex.d.ts +2 -2
  37. package/src/QyIndex.js +84 -80
  38. package/src/QyIndexPropTree.d.ts +4 -0
  39. package/src/QyIndexPropTree.js +19 -10
  40. package/src/QyIntersectNode.d.ts +1 -0
  41. package/src/QyIntersectNode.js +1 -0
  42. package/src/QyJsonSaver.d.ts +2 -2
  43. package/src/QyJsonSaver.js +4 -4
  44. package/src/QyKVData.d.ts +18 -1
  45. package/src/QyKVData.js +98 -78
  46. package/src/QyKVDataCleaner_Worker.d.ts +7 -1
  47. package/src/QyKVDataCleaner_Worker.js +69 -55
  48. package/src/QyKVDataLoader.d.ts +10 -2
  49. package/src/QyKVDataLoader.js +27 -21
  50. package/src/QyKVDataSaver_Worker.d.ts +10 -0
  51. package/src/QyKVDataSaver_Worker.js +23 -9
  52. package/src/QyLogFileSaver_Worker.d.ts +1 -0
  53. package/src/QyLogFileSaver_Worker.js +7 -6
  54. package/src/QyLogger.d.ts +20 -10
  55. package/src/QyLogger.js +110 -67
  56. package/src/QyMessageWorker.d.ts +1 -1
  57. package/src/QyMessageWorker.js +5 -5
  58. package/src/QyMessager.d.ts +5 -1
  59. package/src/QyMessager.js +6 -1
  60. package/src/QyMod.js +9 -8
  61. package/src/QyOpRunner.d.ts +5 -1
  62. package/src/QyOpRunner.js +7 -7
  63. package/src/QyQueue.d.ts +5 -1
  64. package/src/QyQueue.js +6 -7
  65. package/src/QySaver.d.ts +3 -0
  66. package/src/QySaver.js +26 -15
  67. package/src/QySnapshotCompactor_Worker.d.ts +7 -0
  68. package/src/QySnapshotCompactor_Worker.js +37 -26
  69. package/src/QySnapshotSaver_Worker.d.ts +8 -1
  70. package/src/QySnapshotSaver_Worker.js +21 -14
  71. package/src/QySnapshots.d.ts +19 -7
  72. package/src/QySnapshots.js +195 -172
  73. package/src/QyTrigger.d.ts +5 -1
  74. package/src/QyTrigger.js +44 -34
  75. package/src/QyUnionNode.d.ts +10 -1
  76. package/src/QyUnionNode.js +34 -36
  77. package/src/QyUtils.d.ts +2 -2
  78. package/src/QyUtils.js +116 -111
  79. package/src/simulate.js +34 -31
  80. package/src/simulate2.js +49 -46
  81. package/src/soc_pokec.js +17 -11
  82. package/static/codemirror.bundle/editor.bundle.js +31 -18
package/README.md CHANGED
@@ -4,9 +4,11 @@ datafolder is a lightning fluid JSON database for SSD, featuring an AI-friendly
4
4
 
5
5
  ### Changelog
6
6
 
7
- 1.0.8 Added Typescript type declarations.
7
+ 1.0.10 Added document [datafolder for high speed SSDs](https://github.com/datafolderdev/datafolder/wiki/datafolder-for-high-speed-SSDs)
8
8
 
9
- 1.0.7 Added trigger editor and [internal.md](https://github.com/datafolderdev/datafolder/wiki/Internals-of-datafolder)
9
+ 1.0.9 Added Typescript type declarations.
10
+
11
+ 1.0.7 Added trigger editor and [Internals of datafolder](https://github.com/datafolderdev/datafolder/wiki/Internals-of-datafolder)
10
12
 
11
13
  1.0.6 Added code mirror as the query editor.
12
14
 
package/SSD.md ADDED
@@ -0,0 +1,60 @@
1
+ ## datafolder, a lightning fluid JSON database to smooth SSD bumps and keep the high speed
2
+
3
+ ### Solid-State Drives (SSDs)
4
+
5
+ [SSDs](https://www.kingston.com/en/blog/pc-performance/nand-flash-technology-and-ssd) are non-volatile, high-speed solid-state drives that store data on flash memory chips without requiring power, making them ideal for computers and mobile devices. Using NAND logic gates, they provide faster read/write speeds, better durability, and lower power consumption than traditional mechanical hard drives.
6
+
7
+ But they have physical constraints:
8
+
9
+ - NAND flash **cannot overwrite** data;
10
+ - it must **erase a whole block** before writing new data.
11
+
12
+ **High** Speed. But with **bumps**.
13
+
14
+ ### Flash Translation Layer (FTL)
15
+
16
+ The Flash Translation Layer (FTL) is critical firmware running on an SSD controller that maps logical block addresses (LBAs) from the operating system to physical NAND flash locations. The FTL manages the "write amplification" issue by handling random write operations efficiently, typically using a mapping table cached in DRAM to maintain high speed. It enables SSDs to act like hard drives, managing data mapping, wear leveling, garbage collection, and bad block management to ensure performance and durability.
17
+
18
+ Key Functions of the FTL:
19
+
20
+ - Address Mapping: Translates Logical Block Addresses (LBAs) used by the OS to Physical Block Addresses (PBAs) on the NAND flash.
21
+ - Wear Leveling: Distributes write/erase cycles evenly across flash cells to prevent premature failure of specific sectors.
22
+ - Garbage Collection: Cleans up invalid data (data marked for deletion) and consolidates valid data into new blocks, freeing up space.
23
+ - Bad Block Management: Identifies and blocks memory locations that can no longer hold data reliably.
24
+
25
+ ### Log-structured merge-trees (LSM trees)
26
+
27
+ Log-structured merge-trees (LSM trees) are write-optimized data structures designed for high-throughput, insert-heavy workloads by batching updates in memory and writing them sequentially to disk. They reduce random writes—ideal for SSDs—by avoiding in-place updates, using an in-memory memtable, and periodically merging immutable Sorted String Tables (SSTables).
28
+
29
+ Key Characteristics and Benefits of LSM trees to run on SSDs
30
+
31
+ - Sequential IO: LSM trees convert random write operations into sequential writes, which are much faster and more efficient on SSDs compared to traditional B-tree in-place updates, reducing SSD endurance issues.
32
+ - Write-Optimized Structure: By using a "log-structured" approach, incoming data is buffered in a memtable in memory and, when full, flushed as an ordered, immutable file (SSTable) to the SSD, minimizing write amplification.
33
+ - Compaction: To manage storage and improve read performance, files are periodically merged in the background, consolidating data and removing old versions, often referred to as compaction.
34
+
35
+ ### datafolder, a lightning fluid JSON database, is a natural fit for high speed SSDs
36
+
37
+ datafolder is [based on LSM trees](https://github.com/datafolderdev/datafolder/wiki/Internals-of-datafolder), but taked to a higher level.
38
+
39
+ - Complex JSON data in a single virtual file for a record
40
+
41
+ The data is just a normal JSON [object](https://github.com/datafolderdev/datafolder/wiki/Internals-of-datafolder#in-memory-tree-structure). It can be as complex as keeping a customer's whole airbnb listings and comments. Such a big record greatly reduceds read/write amplifications.
42
+
43
+ - Changes are stored as deltas in append-only mode.
44
+
45
+ When changes are maded to each virtual file, only [the deltas](https://github.com/datafolderdev/datafolder/wiki/Internals-of-datafolder#accumulated-change-list) are stored. And the delta changes from different virtual files/folders are merged and appended to ACL log files.
46
+
47
+ - Never overwrite. Always append or create new file.
48
+
49
+ datafolder never overwrites. It always appends to an ACL file, or create new [snapshot files](https://github.com/datafolderdev/datafolder/wiki/Internals-of-datafolder#snapshot-indexes). Each snapshot is stored in a prefix Position Mapping file, a Position Mapping file, and a Value List file.
50
+
51
+ - Multi-level Indexing makes it lightning fast.
52
+
53
+ - Memory level folder tree indexing
54
+ - datafolder uses a tree structure to store the folder/file relationship in memory. Each node has a subdir map and a file map. subdir map stores subdir nodes, which in turn has its subdir map. file map stores the files that are inside this folder. JSON data is stored as file content within each file node. Thanks to V8 engine's highly optimized object [property](https://v8.dev/blog/fast-properties) [access](https://v8.dev/docs/hidden-classes), getting the dir/file node by path and getting properties from JSON data are extremely fast.
55
+ - memory level JSON property indexing
56
+ - For example, we can create "emailAddress" property indexing on "users" folder, and use this index to query for users with a given email address. Arbitrary properties and comparison combinations are supported, like "address.city" + "department" etc.
57
+ - Snapshot Position Mapping maps a key to its position in the corresponding valueList file.
58
+ - Snapshot Prefix Position Mapping maps a key prefix to its range position in the corresponding Positing Mapping file.
59
+
60
+ ### Future: Make datafolder runs directly on SSDs without the FTL
package/index.js CHANGED
@@ -1 +1,2 @@
1
+ export { logger } from "./src/QyLogger.js";
1
2
  export { QyDB as default } from "./src/QyDB.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "datafolder",
3
- "version": "1.0.8",
3
+ "version": "1.0.10",
4
4
  "author": {
5
5
  "name": "lysh",
6
6
  "email": "datafolderdev@outlook.com"
package/sample.js CHANGED
@@ -1,4 +1,4 @@
1
- import DataFolder from "datafolder";
1
+ import DataFolder, { logger } from "datafolder";
2
2
  const dataFolder = new DataFolder();
3
3
 
4
4
  run();
@@ -18,8 +18,8 @@ async function run() {
18
18
  address.zipcode = 678;
19
19
  dataFolder.insert("traindata/2026/1/20/chat_0001", { feedbackScore: feedbackScore + 1, address });
20
20
  logger.log(dataFolder.view("traindata/2026/1/20/chat_0001", ["feedbackScore", "address"]));
21
- logger.log(dataFolder.view("traindata/2026/1/20/chat_0001/prompt"));
22
- logger.log(dataFolder.view("traindata/2026/1/20/chat_0001/answer"));
21
+ logger.debug(dataFolder.view("traindata/2026/1/20/chat_0001/prompt"));
22
+ logger.warn(dataFolder.view("traindata/2026/1/20/chat_0001/answer"));
23
23
  await dataFolder.stop();
24
24
  await dataFolder.start();
25
25
  {
@@ -27,7 +27,7 @@ async function run() {
27
27
  const { email, feedbackScore } = file.view();
28
28
  logger.log(email, feedbackScore);
29
29
  dataFolder.insert(file, { feedbackScore: feedbackScore + 1 });
30
- logger.log(
30
+ logger.error(
31
31
  file.view(),
32
32
  dataFolder.view("traindata/2026/1/20/chat_0001/prompt"),
33
33
  dataFolder.view("traindata/2026/1/20/chat_0001/answer"),
package/scripts/airbnb.js CHANGED
@@ -2,6 +2,7 @@ import { join } from "node:path";
2
2
  import { open, rm } from "node:fs/promises";
3
3
  import { QyDB } from "../src/QyDB.js";
4
4
  import { folderOrFileExists, isSimpleType, __dirname } from "../src/QyUtils.js";
5
+ import { logger } from "../src/QyLogger.js";
5
6
  import { runQueries } from "./airbnb_queries.js";
6
7
  import { downloadFile } from "./downloadFile.js";
7
8
  const fileName = "listingsAndReviews.json";
@@ -2,6 +2,7 @@ import { join } from "node:path";
2
2
  import { open, rm } from "node:fs/promises";
3
3
  import { QyDB } from "../src/QyDB.js";
4
4
  import { folderOrFileExists, isSimpleType, __dirname } from "../src/QyUtils.js";
5
+ import { logger } from "../src/QyLogger.js";
5
6
  import { runQueries } from "./airbnb2_queries.js";
6
7
  import { downloadFile } from "./downloadFile.js";
7
8
  const fileName = "listingsAndReviews.json";
@@ -2,6 +2,7 @@ import { join, basename } from "node:path";
2
2
  import { readFile, readdir, writeFile } from "node:fs/promises";
3
3
  import { iterPMBuffer, loadPrefixPMFile } from "../src/QySnapshots.js";
4
4
  import { ensureDir, folderOrFileExists } from "../src/QyUtils.js";
5
+ import { logger } from "../src/QyLogger.js";
5
6
  logger.level = "info";
6
7
  run();
7
8
  async function loadPosMapFile(posMapFilePath) {
@@ -1,7 +1,8 @@
1
1
  import { join } from "node:path";
2
2
  import { QyDB } from "../src/QyDB.js";
3
- import Express from "express";
4
3
  import { __dirname } from "../src/QyUtils.js";
4
+ import { logger } from "../src/QyLogger.js";
5
+ import Express from "express";
5
6
  const config = {
6
7
  port: 3629,
7
8
  qyDBDataFolder: "./tmp/QyExpress",
@@ -5,6 +5,7 @@ import fastifyStatic from "@fastify/static";
5
5
  import fastifyCompress from "@fastify/compress";
6
6
  import { QyDB } from "../src/QyDB.js";
7
7
  import { folderOrFileExists, __dirname } from "../src/QyUtils.js";
8
+ import { logger } from "../src/QyLogger.js";
8
9
  import Fastify from "fastify";
9
10
  const config = {
10
11
  port: 3628,
@@ -13,8 +14,8 @@ const config = {
13
14
  };
14
15
  const { port, staticRoot } = config;
15
16
  const fastify = Fastify({ logger: false, forceCloseConnections: true });
16
- const qyDB = new QyDB(join(__dirname, "../tmp/simulate2"));
17
- // const qyDB = new QyDB();
17
+ // const qyDB = new QyDB(join(__dirname, "../tmp/simulate2"));
18
+ const qyDB = new QyDB();
18
19
  let sigintReceived = false;
19
20
  process.on("SIGINT", async () => {
20
21
  logger.log("SIGINT signal received: closing HTTP server");
@@ -5,6 +5,7 @@ import { readFileSync } from "node:fs";
5
5
  import { rm } from "node:fs/promises";
6
6
  import { QyDB } from "../src/QyDB.js";
7
7
  import { folderOrFileExists } from "../src/QyUtils.js";
8
+ import { logger } from "../src/QyLogger.js";
8
9
  import { runQueries } from "./flights_queries.js";
9
10
  logger.level = "info";
10
11
  const arangoJsonFolderPath = "D:\\scripts\\GraphCourse_DemoData_ArangoDB-2";
@@ -5,6 +5,7 @@ import { readFileSync } from "node:fs";
5
5
  import { rm } from "node:fs/promises";
6
6
  import { QyDB } from "../src/QyDB.js";
7
7
  import { folderOrFileExists } from "../src/QyUtils.js";
8
+ import { logger } from "../src/QyLogger.js";
8
9
  import { runQueries } from "./flights2_queries.js";
9
10
  logger.level = "info";
10
11
  const arangoJsonFolderPath = "D:\\scripts\\GraphCourse_DemoData_ArangoDB-2";
@@ -1,4 +1,5 @@
1
1
  import { deepEqual } from "node:assert/strict";
2
+ import { logger } from "../src/QyLogger.js";
2
3
  // Return the names of all airports one can reach
3
4
  // directly (1 step) from Los Angeles International
4
5
  // (LAX) following the flights edges:
package/src/QyAcl.d.ts CHANGED
@@ -6,12 +6,12 @@ export declare class QyAclCmdGenerator {
6
6
  cmdCount: number;
7
7
  batchSize: number;
8
8
  constructor();
9
- pushCmd(cmdName: string, cmdHashKey: string, cmdArg: any): void;
9
+ pushCmd(cmdName: string, cmdHashKey: string, cmdArg?: any): void;
10
10
  pushCmdArgAsListObj(cmdArgAsListObj: any): this;
11
11
  takeCmdArgAsListObj(): {};
12
12
  toAclBuffer(changeId: any): Buffer<ArrayBuffer> | undefined;
13
13
  }
14
- export declare function readAclFile(aclFilePath: any, autoRepairAclFile?: boolean, currentChangeId?: number): Promise<never[]>;
14
+ export declare function readAclFile(aclFilePath: any, autoRepairAclFile?: boolean, currentChangeId?: number): Promise<any[]>;
15
15
  export declare function numsToBuffer(nums: any): Buffer<ArrayBuffer>;
16
16
  export declare function bufferToNums(buffer: any, offset: any, nums: any): any;
17
- export declare function readAclBuffer(aclFilePath: any, contentBuffer: any, autoRepairAclFile: any, currentChangeId: any): Promise<never[]>;
17
+ export declare function readAclBuffer(aclFilePath: any, contentBuffer: any, autoRepairAclFile: any, currentChangeId: any): Promise<any[]>;
package/src/QyAcl.js CHANGED
@@ -66,7 +66,7 @@ class s {
66
66
  cmdCount = 0;
67
67
  batchSize = 0;
68
68
  constructor() {}
69
- pushCmd(r, t, e) {
69
+ pushCmd(r, t, e = void 0) {
70
70
  switch (++this.cmdCount, r) {
71
71
  case "A":
72
72
  o(this, [ "A", t, e ]), f(this, [ "R", t, e ]);
@@ -151,20 +151,20 @@ function f(r, t) {
151
151
 
152
152
  async function c(t, r = !1, e = 0) {
153
153
  try {
154
- return await v(t, await u.readFile(t), r, e);
154
+ return await A(t, await u.readFile(t), r, e);
155
155
  } catch (r) {
156
156
  throw d.error(`Reading ${t} failed:`, r), r;
157
157
  }
158
158
  }
159
159
 
160
- let A = [ 1, 2, 4, 8 ];
160
+ let v = [ 1, 2, 4, 8 ];
161
161
 
162
162
  function l(t) {
163
163
  var e = t.length, a = new Array(e), n = new Array(e);
164
164
  let i = e << 6, s = 1;
165
165
  for (let r = 0; r < e; ++r) {
166
166
  var o = a[r] = (o = t[r]) <= 255 ? 0 : o <= 65535 ? 1 : o <= 4294967295 ? 2 : 3, o = (i |= o << (r << 1),
167
- n[r] = A[o]);
167
+ n[r] = v[o]);
168
168
  s += o;
169
169
  }
170
170
  var f = Buffer.allocUnsafe(s);
@@ -197,7 +197,7 @@ function l(t) {
197
197
  function h(t, e, a) {
198
198
  var n = t.readUInt8(e), i = (++e, n >> 6 & 3);
199
199
  for (let r = 0; r < i; ++r) {
200
- var s = A[n >> (r << 1) & 3];
200
+ var s = v[n >> (r << 1) & 3];
201
201
  a[r] = ((r, t, e = 0) => {
202
202
  switch (t) {
203
203
  case 1:
@@ -217,7 +217,7 @@ function h(t, e, a) {
217
217
  return e;
218
218
  }
219
219
 
220
- async function v(e, r, a, n) {
220
+ async function A(e, r, a, n) {
221
221
  var i = [];
222
222
  for (let t = 0; t < r.length; ) {
223
223
  var s = [], o = h(r, t, s), [ s, f, c ] = s;
@@ -246,5 +246,5 @@ export {
246
246
  c as readAclFile,
247
247
  l as numsToBuffer,
248
248
  h as bufferToNums,
249
- v as readAclBuffer
249
+ A as readAclBuffer
250
250
  };
@@ -1,5 +1,6 @@
1
1
  import { QyMessageWorker } from "./QyMessageWorker.ts";
2
2
  export default class QyAclSaver_Worker extends QyMessageWorker {
3
+ qyAclWriter: any;
3
4
  constructor(options: any);
4
5
  _op_start(aclFilePath: any): Promise<void>;
5
6
  _op_stop(): Promise<void>;
@@ -7,6 +7,7 @@ import {
7
7
  } from "./QyAclWriter.js";
8
8
 
9
9
  export default class extends t {
10
+ qyAclWriter;
10
11
  constructor(t) {
11
12
  super(t), Object.assign(this, {
12
13
  options: t,
@@ -1,5 +1,6 @@
1
1
  import { QyBinWriter } from "./QyBinWriter.ts";
2
2
  export declare class QyAclWriter extends QyBinWriter {
3
- constructor(options: any, filePath: any);
3
+ qyAclCmdGenerator: any;
4
+ constructor(options: any, filePath?: undefined);
4
5
  getBinData(dataQueue: any, changeId: any): any;
5
6
  }
@@ -7,20 +7,21 @@ import {
7
7
  } from "./QyAcl.js";
8
8
 
9
9
  import {
10
- getDefaultOptions as s
10
+ getDefaultOptions as o
11
11
  } from "./QyDefaultOptions.js";
12
12
 
13
13
  class t extends r {
14
- constructor(r, t) {
14
+ qyAclCmdGenerator;
15
+ constructor(r, t = void 0) {
15
16
  super({
16
- ...s("QyAclWriter"),
17
+ ...o("QyAclWriter"),
17
18
  ...r
18
19
  }, t), this.qyAclCmdGenerator = new e();
19
20
  }
20
21
  getBinData(r, t) {
21
- var e, s = this.qyAclCmdGenerator;
22
- for (e of r) s.pushCmdArgAsListObj(e);
23
- return s.toAclBuffer(t);
22
+ var e, o = this.qyAclCmdGenerator;
23
+ for (e of r) o.pushCmdArgAsListObj(e);
24
+ return o.toAclBuffer(t);
24
25
  }
25
26
  }
26
27
 
package/src/QyBatch.d.ts CHANGED
@@ -1,31 +1,38 @@
1
1
  import { QyCD } from "./QyCD.ts";
2
2
  export declare class QyBatch extends QyCD {
3
+ fileLogLevel: any;
4
+ actionQueue: any;
5
+ changeId: any;
6
+ changeList: any;
7
+ syncList: any;
8
+ qyAclCmdGenerator: any;
9
+ qyCmdObjHistory: any;
3
10
  constructor(qyCache?: any, options?: any);
4
- createDir(namePath: any, parentDir?: import("./QyDir.ts").QyDir | undefined): any;
5
- createDirP(namePath: any, parentDir?: import("./QyDir.ts").QyDir | undefined): any;
6
- delDir(namePath: any, parentDir?: import("./QyDir.ts").QyDir | undefined): any;
7
- delDirP(namePath: any, parentDir?: import("./QyDir.ts").QyDir | undefined): any;
8
- createFile(namePath: any, parentDir?: import("./QyDir.ts").QyDir | undefined): any;
9
- createFileP(namePath: any, parentDir?: import("./QyDir.ts").QyDir | undefined): any;
10
- delFile(namePath: any, parentDir?: import("./QyDir.ts").QyDir | undefined): any;
11
- delFileP(namePath: any, parentDir?: import("./QyDir.ts").QyDir | undefined): any;
12
- createIndex(indexHostDirNamePath: any, indexPropPathList: any, parentDir?: import("./QyDir.ts").QyDir | undefined): any;
13
- createIndexP(indexHostDirNamePath: any, indexPropPathList: any, parentDir?: import("./QyDir.ts").QyDir | undefined): any;
14
- delIndex(indexHostDirNamePath: any, indexPropPath: any, parentDir?: import("./QyDir.ts").QyDir | undefined): any;
15
- delIndexP(indexHostDirNamePath: any, indexPropPath: any, parentDir?: import("./QyDir.ts").QyDir | undefined): any;
16
- insert(namePath: any, content: any, parentDir?: import("./QyDir.ts").QyDir | undefined): any;
17
- insertP(namePath: any, content: any, parentDir?: import("./QyDir.ts").QyDir | undefined): any;
18
- remove(namePath: any, content: any, parentDir?: import("./QyDir.ts").QyDir | undefined): any;
19
- removeP(namePath: any, content: any, parentDir?: import("./QyDir.ts").QyDir | undefined): any;
20
- replace(namePath: any, content: any, parentDir?: import("./QyDir.ts").QyDir | undefined): any;
21
- replaceP(namePath: any, content: any, parentDir?: import("./QyDir.ts").QyDir | undefined): any;
22
- delContent(namePath: any, parentDir?: import("./QyDir.ts").QyDir | undefined): any;
23
- delContentP(namePath: any, parentDir?: import("./QyDir.ts").QyDir | undefined): any;
11
+ createDir(namePath: any, parentDir?: any): any;
12
+ createDirP(namePath: any, parentDir?: any): any;
13
+ delDir(namePath: any, parentDir?: any): any;
14
+ delDirP(namePath: any, parentDir?: any): any;
15
+ createFile(namePath: any, parentDir?: any): any;
16
+ createFileP(namePath: any, parentDir?: any): any;
17
+ delFile(namePath: any, parentDir?: any): any;
18
+ delFileP(namePath: any, parentDir?: any): any;
19
+ createIndex(indexHostDirNamePath: any, indexPropPathList: any, parentDir?: any): any;
20
+ createIndexP(indexHostDirNamePath: any, indexPropPathList: any, parentDir?: any): any;
21
+ delIndex(indexHostDirNamePath: any, indexPropPath: any, parentDir?: any): any;
22
+ delIndexP(indexHostDirNamePath: any, indexPropPath: any, parentDir?: any): any;
23
+ insert(namePath: any, content: any, parentDir?: any): any;
24
+ insertP(namePath: any, content: any, parentDir?: any): any;
25
+ remove(namePath: any, content: any, parentDir?: any): any;
26
+ removeP(namePath: any, content: any, parentDir?: any): any;
27
+ replace(namePath: any, content: any, parentDir?: any): any;
28
+ replaceP(namePath: any, content: any, parentDir?: any): any;
29
+ delContent(namePath: any, parentDir?: any): any;
30
+ delContentP(namePath: any, parentDir?: any): any;
24
31
  insertTrigger(triggerName: any, fileNamePath: any, propNamePathList: any, modCode: any): any;
25
32
  removeTrigger(triggerName: any): any;
26
33
  insertRpc(rpcFunName: any, modCode: any): any;
27
34
  removeRpc(rpcFunName: any): any;
28
- run(needPromise: any): any;
35
+ run(needPromise?: boolean): any;
29
36
  getTopHistoryCmdObj(): any;
30
37
  _action_insertTrigger(action: any): boolean;
31
38
  _action_removeTrigger(action: any): boolean;
@@ -33,7 +40,7 @@ export declare class QyBatch extends QyCD {
33
40
  _action_removeRpc(action: any): boolean;
34
41
  _action_createIndex(action: any): void;
35
42
  _action_delIndex(action: any): void;
36
- _action_delFile(action: any, deletingParentDir: any): boolean;
43
+ _action_delFile(action: any, deletingParentDir?: boolean): boolean;
37
44
  _action_delDir(action: any): boolean;
38
45
  _action_delContent(action: any): boolean;
39
46
  _action_insert(action: any): boolean;