@harperfast/harper 5.0.7 → 5.0.9
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/bin/status.js +2 -2
- package/bin/stop.js +5 -6
- package/components/OptionsWatcher.ts +9 -1
- package/dataLayer/harperBridge/TableSizeObject.ts +35 -0
- package/dataLayer/harperBridge/lmdbBridge/lmdbUtility/lmdbGetTableSize.ts +24 -0
- package/dist/bin/status.js +2 -2
- package/dist/bin/status.js.map +1 -1
- package/dist/bin/stop.js +5 -5
- package/dist/bin/stop.js.map +1 -1
- package/dist/components/OptionsWatcher.js +8 -1
- package/dist/components/OptionsWatcher.js.map +1 -1
- package/dist/dataLayer/harperBridge/TableSizeObject.d.ts +20 -0
- package/dist/dataLayer/harperBridge/TableSizeObject.js +32 -0
- package/dist/dataLayer/harperBridge/TableSizeObject.js.map +1 -0
- package/dist/dataLayer/harperBridge/lmdbBridge/lmdbUtility/lmdbGetTableSize.d.ts +6 -6
- package/dist/dataLayer/harperBridge/lmdbBridge/lmdbUtility/lmdbGetTableSize.js +18 -19
- package/dist/dataLayer/harperBridge/lmdbBridge/lmdbUtility/lmdbGetTableSize.js.map +1 -1
- package/dist/globals.d.ts +4 -3
- package/dist/globals.js +7 -4
- package/dist/globals.js.map +1 -1
- package/dist/index.d.ts +45 -7
- package/dist/index.js +32 -36
- package/dist/index.js.map +1 -1
- package/dist/resources/DatabaseTransaction.js +6 -1
- package/dist/resources/DatabaseTransaction.js.map +1 -1
- package/dist/resources/RecordEncoder.d.ts +1 -0
- package/dist/resources/RecordEncoder.js +18 -9
- package/dist/resources/RecordEncoder.js.map +1 -1
- package/dist/resources/Table.d.ts +1 -1
- package/dist/resources/Table.js +13 -2
- package/dist/resources/Table.js.map +1 -1
- package/dist/resources/blob.d.ts +6 -0
- package/dist/resources/blob.js +5 -2
- package/dist/resources/blob.js.map +1 -1
- package/dist/resources/databases.js +2 -1
- package/dist/resources/databases.js.map +1 -1
- package/dist/security/jsLoader.d.ts +3 -0
- package/dist/security/jsLoader.js +19 -2
- package/dist/security/jsLoader.js.map +1 -1
- package/dist/security/keys.js +1 -1
- package/dist/security/keys.js.map +1 -1
- package/dist/server/DurableSubscriptionsSession.js +2 -0
- package/dist/server/DurableSubscriptionsSession.js.map +1 -1
- package/dist/server/serverHelpers/serverUtilities.js +2 -2
- package/dist/server/serverHelpers/serverUtilities.js.map +1 -1
- package/dist/utility/environment/systemInformation.d.ts +178 -49
- package/dist/utility/environment/systemInformation.js +359 -219
- package/dist/utility/environment/systemInformation.js.map +1 -1
- package/dist/utility/operation_authorization.js +2 -2
- package/dist/utility/operation_authorization.js.map +1 -1
- package/index.ts +113 -0
- package/package.json +3 -3
- package/resources/DatabaseTransaction.ts +8 -3
- package/resources/RecordEncoder.ts +11 -3
- package/resources/Table.ts +13 -2
- package/resources/blob.ts +7 -2
- package/resources/databases.ts +2 -1
- package/security/jsLoader.ts +17 -5
- package/security/keys.js +1 -1
- package/server/DurableSubscriptionsSession.ts +1 -0
- package/server/serverHelpers/serverUtilities.ts +2 -5
- package/studio/web/assets/{index-C0And10y.js → index-DL0ibcSu.js} +2 -2
- package/studio/web/assets/{index-C0And10y.js.map → index-DL0ibcSu.js.map} +1 -1
- package/studio/web/index.html +1 -1
- package/utility/environment/systemInformation.ts +698 -0
- package/utility/operation_authorization.js +2 -5
- package/dataLayer/harperBridge/lmdbBridge/lmdbUtility/TableSizeObject.js +0 -25
- package/dataLayer/harperBridge/lmdbBridge/lmdbUtility/lmdbGetTableSize.js +0 -34
- package/dist/dataLayer/harperBridge/lmdbBridge/lmdbUtility/TableSizeObject.d.ts +0 -21
- package/dist/dataLayer/harperBridge/lmdbBridge/lmdbUtility/TableSizeObject.js +0 -24
- package/dist/dataLayer/harperBridge/lmdbBridge/lmdbUtility/TableSizeObject.js.map +0 -1
- package/index.d.ts +0 -56
- package/index.js +0 -41
- package/utility/environment/systemInformation.js +0 -355
package/bin/status.js
CHANGED
|
@@ -6,7 +6,7 @@ const YAML = require('yaml');
|
|
|
6
6
|
|
|
7
7
|
const hdbTerms = require('../utility/hdbTerms.ts');
|
|
8
8
|
const hdbLog = require('../utility/logging/harper_logger.js');
|
|
9
|
-
const
|
|
9
|
+
const systemInformation = require('../utility/environment/systemInformation.ts');
|
|
10
10
|
const envMgr = require('../utility/environment/environmentManager.js');
|
|
11
11
|
const installation = require('../utility/installation.ts');
|
|
12
12
|
envMgr.initSync();
|
|
@@ -51,7 +51,7 @@ async function status() {
|
|
|
51
51
|
}
|
|
52
52
|
|
|
53
53
|
// Check the saved pid against any running hdb processes
|
|
54
|
-
const hdbSysInfo = await
|
|
54
|
+
const hdbSysInfo = await systemInformation.getHDBProcessInfo();
|
|
55
55
|
for (const proc of hdbSysInfo.core) {
|
|
56
56
|
if (proc.pid === hdbPid) {
|
|
57
57
|
status.harperdb.status = STATUSES.RUNNING;
|
package/bin/stop.js
CHANGED
|
@@ -4,7 +4,7 @@ const hdbLogger = require('../utility/logging/harper_logger.js');
|
|
|
4
4
|
const util = require('util');
|
|
5
5
|
const childProcess = require('child_process');
|
|
6
6
|
const exec = util.promisify(childProcess.exec);
|
|
7
|
-
const
|
|
7
|
+
const systemInformation = require('../utility/environment/systemInformation.ts');
|
|
8
8
|
|
|
9
9
|
const STOP_MSG = 'Stopping Harper.';
|
|
10
10
|
|
|
@@ -14,9 +14,8 @@ async function stop() {
|
|
|
14
14
|
console.log(STOP_MSG);
|
|
15
15
|
hdbLogger.notify(STOP_MSG);
|
|
16
16
|
|
|
17
|
-
const processes = await
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
});
|
|
17
|
+
const processes = await systemInformation.getHDBProcessInfo();
|
|
18
|
+
for (const { pid } of processes.core) {
|
|
19
|
+
exec(`kill ${pid}`);
|
|
20
|
+
}
|
|
22
21
|
}
|
|
@@ -178,7 +178,9 @@ export class OptionsWatcher extends EventEmitter<OptionsWatcherEventMap> {
|
|
|
178
178
|
// First, ensure current and new config values are Config objects (not null, undefined, or a primitive)
|
|
179
179
|
if (!this.#isConfig(currentConfigValue) || !this.#isConfig(newConfigValue)) {
|
|
180
180
|
// If either is not a config, then just set as there is no need to diff/merge
|
|
181
|
-
|
|
181
|
+
if (!isDeepStrictEqual(currentConfigValue, newConfigValue)) {
|
|
182
|
+
this.#setValue(prevKeys, newConfigValue);
|
|
183
|
+
}
|
|
182
184
|
return;
|
|
183
185
|
}
|
|
184
186
|
|
|
@@ -256,6 +258,12 @@ export class OptionsWatcher extends EventEmitter<OptionsWatcherEventMap> {
|
|
|
256
258
|
throw new InvalidValueTypeError(keys, value);
|
|
257
259
|
}
|
|
258
260
|
|
|
261
|
+
if (keys.length === 0) {
|
|
262
|
+
this.#scopedConfig = value;
|
|
263
|
+
this.emit('change', keys, value, this.#scopedConfig);
|
|
264
|
+
return;
|
|
265
|
+
}
|
|
266
|
+
|
|
259
267
|
let obj: ConfigValue = this.#scopedConfig;
|
|
260
268
|
|
|
261
269
|
for (const key of keys.slice(0, -1)) {
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Represents the table size entry for a RocksDB or LMDB table.
|
|
3
|
+
*/
|
|
4
|
+
export class TableSizeObject {
|
|
5
|
+
schema: string;
|
|
6
|
+
table: string;
|
|
7
|
+
tableSize: number;
|
|
8
|
+
recordCount: number;
|
|
9
|
+
transactionLogSize: number;
|
|
10
|
+
transactionLogRecordCount?: number;
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* @param schema - The schema of the table
|
|
14
|
+
* @param table - The name of the table
|
|
15
|
+
* @param tableSize - The data size of the table in bytes
|
|
16
|
+
* @param recordCount - The number of entries in the table
|
|
17
|
+
* @param transactionLogSize - The number of entries in the transaction log
|
|
18
|
+
* @param transactionLogRecordCount - The data size of the transaction log in bytes
|
|
19
|
+
*/
|
|
20
|
+
constructor(
|
|
21
|
+
schema: string,
|
|
22
|
+
table: string,
|
|
23
|
+
tableSize: number = 0,
|
|
24
|
+
recordCount: number = 0,
|
|
25
|
+
transactionLogSize: number = 0,
|
|
26
|
+
transactionLogRecordCount?: number
|
|
27
|
+
) {
|
|
28
|
+
this.schema = schema;
|
|
29
|
+
this.table = table;
|
|
30
|
+
this.tableSize = tableSize;
|
|
31
|
+
this.recordCount = recordCount;
|
|
32
|
+
this.transactionLogSize = transactionLogSize;
|
|
33
|
+
this.transactionLogRecordCount = transactionLogRecordCount;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { TableSizeObject } from '../../TableSizeObject.ts';
|
|
2
|
+
import logger from '../../../../utility/logging/harper_logger.js';
|
|
3
|
+
import type { Table } from '../../../../resources/databases.ts';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Calculates the number of entries & data size in bytes for a table & its transaction log
|
|
7
|
+
* @param table
|
|
8
|
+
* @returns {TableSizeObject}
|
|
9
|
+
*/
|
|
10
|
+
export function lmdbGetTableSize(table: Table) {
|
|
11
|
+
const tableStats = new TableSizeObject(table.databaseName, table.tableName);
|
|
12
|
+
try {
|
|
13
|
+
const dbiStat = table.primaryStore.getStats();
|
|
14
|
+
|
|
15
|
+
//get the txn log record count
|
|
16
|
+
const txnDbiStat = table.auditStore?.getStats();
|
|
17
|
+
|
|
18
|
+
tableStats.recordCount = dbiStat.entryCount;
|
|
19
|
+
tableStats.transactionLogRecordCount = txnDbiStat.entryCount;
|
|
20
|
+
} catch (e) {
|
|
21
|
+
logger.warn(`unable to stat table dbi due to ${e}`);
|
|
22
|
+
}
|
|
23
|
+
return tableStats;
|
|
24
|
+
}
|
package/dist/bin/status.js
CHANGED
|
@@ -4,7 +4,7 @@ const path = require('path');
|
|
|
4
4
|
const YAML = require('yaml');
|
|
5
5
|
const hdbTerms = require("../utility/hdbTerms.js");
|
|
6
6
|
const hdbLog = require('../utility/logging/harper_logger.js');
|
|
7
|
-
const
|
|
7
|
+
const systemInformation = require("../utility/environment/systemInformation.js");
|
|
8
8
|
const envMgr = require('../utility/environment/environmentManager.js');
|
|
9
9
|
const installation = require("../utility/installation.js");
|
|
10
10
|
envMgr.initSync();
|
|
@@ -42,7 +42,7 @@ async function status() {
|
|
|
42
42
|
throw err;
|
|
43
43
|
}
|
|
44
44
|
// Check the saved pid against any running hdb processes
|
|
45
|
-
const hdbSysInfo = await
|
|
45
|
+
const hdbSysInfo = await systemInformation.getHDBProcessInfo();
|
|
46
46
|
for (const proc of hdbSysInfo.core) {
|
|
47
47
|
if (proc.pid === hdbPid) {
|
|
48
48
|
status.harperdb.status = STATUSES.RUNNING;
|
package/dist/bin/status.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"status.js","sourceRoot":"","sources":["../../bin/status.js"],"names":[],"mappings":"AAAA,YAAY,CAAC;AAEb,MAAM,EAAE,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC;AAC/B,MAAM,IAAI,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;AAC7B,MAAM,IAAI,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;AAE7B,MAAM,QAAQ,GAAG,OAAO,CAAC,wBAAwB,CAAC,CAAC;AACnD,MAAM,MAAM,GAAG,OAAO,CAAC,qCAAqC,CAAC,CAAC;AAC9D,MAAM,
|
|
1
|
+
{"version":3,"file":"status.js","sourceRoot":"","sources":["../../bin/status.js"],"names":[],"mappings":"AAAA,YAAY,CAAC;AAEb,MAAM,EAAE,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC;AAC/B,MAAM,IAAI,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;AAC7B,MAAM,IAAI,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;AAE7B,MAAM,QAAQ,GAAG,OAAO,CAAC,wBAAwB,CAAC,CAAC;AACnD,MAAM,MAAM,GAAG,OAAO,CAAC,qCAAqC,CAAC,CAAC;AAC9D,MAAM,iBAAiB,GAAG,OAAO,CAAC,6CAA6C,CAAC,CAAC;AACjF,MAAM,MAAM,GAAG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C;YAC1C,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC;YACpC,OAAO;QACR,CAAC;QAED,MAAM,GAAG,CAAC;IACX,CAAC;IAED,wDAAwD;IACxD,MAAM,UAAU,GAAG,MAAM,iBAAiB,CAAC,iBAAiB,EAAE,CAAC;IAC/D,KAAK,MAAM,IAAI,IAAI,UAAU,CAAC,IAAI,EAAE,CAAC;QACpC,IAAI,IAAI,CAAC,GAAG,KAAK,MAAM,EAAE,CAAC;YACzB,MAAM,CAAC,QAAQ,CAAC,MAAM,GAAG,QAAQ,CAAC,OAAO,CAAC;YAC1C,MAAM,CAAC,QAAQ,CAAC,GAAG,GAAG,MAAM,CAAC;YAC7B,MAAM;QACP,CAAC;IACF,CAAC;IAED,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC;IACpC,OAAO,CAAC,IAAI,EAAE,CAAC;AAChB,CAAC"}
|
package/dist/bin/stop.js
CHANGED
|
@@ -3,15 +3,15 @@ const hdbLogger = require('../utility/logging/harper_logger.js');
|
|
|
3
3
|
const util = require('util');
|
|
4
4
|
const childProcess = require('child_process');
|
|
5
5
|
const exec = util.promisify(childProcess.exec);
|
|
6
|
-
const
|
|
6
|
+
const systemInformation = require("../utility/environment/systemInformation.js");
|
|
7
7
|
const STOP_MSG = 'Stopping Harper.';
|
|
8
8
|
module.exports = stop;
|
|
9
9
|
async function stop() {
|
|
10
10
|
console.log(STOP_MSG);
|
|
11
11
|
hdbLogger.notify(STOP_MSG);
|
|
12
|
-
const processes = await
|
|
13
|
-
processes.core
|
|
14
|
-
exec(`kill ${
|
|
15
|
-
}
|
|
12
|
+
const processes = await systemInformation.getHDBProcessInfo();
|
|
13
|
+
for (const { pid } of processes.core) {
|
|
14
|
+
exec(`kill ${pid}`);
|
|
15
|
+
}
|
|
16
16
|
}
|
|
17
17
|
//# sourceMappingURL=stop.js.map
|
package/dist/bin/stop.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stop.js","sourceRoot":"","sources":["../../bin/stop.js"],"names":[],"mappings":"AAAA,YAAY,CAAC;AAEb,MAAM,SAAS,GAAG,OAAO,CAAC,qCAAqC,CAAC,CAAC;AACjE,MAAM,IAAI,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;AAC7B,MAAM,YAAY,GAAG,OAAO,CAAC,eAAe,CAAC,CAAC;AAC9C,MAAM,IAAI,GAAG,IAAI,CAAC,SAAS,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC;AAC/C,MAAM,
|
|
1
|
+
{"version":3,"file":"stop.js","sourceRoot":"","sources":["../../bin/stop.js"],"names":[],"mappings":"AAAA,YAAY,CAAC;AAEb,MAAM,SAAS,GAAG,OAAO,CAAC,qCAAqC,CAAC,CAAC;AACjE,MAAM,IAAI,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;AAC7B,MAAM,YAAY,GAAG,OAAO,CAAC,eAAe,CAAC,CAAC;AAC9C,MAAM,IAAI,GAAG,IAAI,CAAC,SAAS,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC;AAC/C,MAAM,iBAAiB,GAAG,OAAO,CAAC,6CAA6C,CAAC,CAAC;AAEjF,MAAM,QAAQ,GAAG,kBAAkB,CAAC;AAEpC,MAAM,CAAC,OAAO,GAAG,IAAI,CAAC;AAEtB,KAAK,UAAU,IAAI;IAClB,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;IACtB,SAAS,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;IAE3B,MAAM,SAAS,GAAG,MAAM,iBAAiB,CAAC,iBAAiB,EAAE,CAAC;IAC9D,KAAK,MAAM,EAAE,GAAG,EAAE,IAAI,SAAS,CAAC,IAAI,EAAE,CAAC;QACtC,IAAI,CAAC,QAAQ,GAAG,EAAE,CAAC,CAAC;IACrB,CAAC;AACF,CAAC"}
|
|
@@ -157,7 +157,9 @@ class OptionsWatcher extends events_1.EventEmitter {
|
|
|
157
157
|
// First, ensure current and new config values are Config objects (not null, undefined, or a primitive)
|
|
158
158
|
if (!this.#isConfig(currentConfigValue) || !this.#isConfig(newConfigValue)) {
|
|
159
159
|
// If either is not a config, then just set as there is no need to diff/merge
|
|
160
|
-
|
|
160
|
+
if (!(0, util_1.isDeepStrictEqual)(currentConfigValue, newConfigValue)) {
|
|
161
|
+
this.#setValue(prevKeys, newConfigValue);
|
|
162
|
+
}
|
|
161
163
|
return;
|
|
162
164
|
}
|
|
163
165
|
// Check for any missing keys (new config has removed keys from current config)
|
|
@@ -222,6 +224,11 @@ class OptionsWatcher extends events_1.EventEmitter {
|
|
|
222
224
|
if (!['object', 'string', 'array', 'number', 'boolean', 'undefined'].includes(typeof value)) {
|
|
223
225
|
throw new InvalidValueTypeError(keys, value);
|
|
224
226
|
}
|
|
227
|
+
if (keys.length === 0) {
|
|
228
|
+
this.#scopedConfig = value;
|
|
229
|
+
this.emit('change', keys, value, this.#scopedConfig);
|
|
230
|
+
return;
|
|
231
|
+
}
|
|
225
232
|
let obj = this.#scopedConfig;
|
|
226
233
|
for (const key of keys.slice(0, -1)) {
|
|
227
234
|
if (obj === null || obj === undefined || typeof obj !== 'object' || !(key in obj)) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OptionsWatcher.js","sourceRoot":"","sources":["../../components/OptionsWatcher.ts"],"names":[],"mappings":";;;;;;AACA,0EAAoE;AACpE,mCAA4C;AAC5C,gDAAwB;AACxB,wDAAoD;AACpD,+CAA4C;AAC5C,+BAAyC;AACzC,2DAAqD;AACrD,mCAAmC;AAgBnC,mFAAmF;AACnF,MAAa,6BAA8B,SAAQ,KAAK;IACvD,YAAY,cAAsB,EAAE,KAAc;QACjD,KAAK,CACJ,8BAA8B,cAAc,KAAK,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI,IAAI,SAAS,IAAI,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,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IAED;;OAEG;IACH,OAAO;QACN,OAAO,IAAI,CAAC,WAAW,CAAC;IACzB,CAAC;CA8BD;AAvRD,wCAuRC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Represents the table size entry for a RocksDB or LMDB table.
|
|
3
|
+
*/
|
|
4
|
+
export declare class TableSizeObject {
|
|
5
|
+
schema: string;
|
|
6
|
+
table: string;
|
|
7
|
+
tableSize: number;
|
|
8
|
+
recordCount: number;
|
|
9
|
+
transactionLogSize: number;
|
|
10
|
+
transactionLogRecordCount?: number;
|
|
11
|
+
/**
|
|
12
|
+
* @param schema - The schema of the table
|
|
13
|
+
* @param table - The name of the table
|
|
14
|
+
* @param tableSize - The data size of the table in bytes
|
|
15
|
+
* @param recordCount - The number of entries in the table
|
|
16
|
+
* @param transactionLogSize - The number of entries in the transaction log
|
|
17
|
+
* @param transactionLogRecordCount - The data size of the transaction log in bytes
|
|
18
|
+
*/
|
|
19
|
+
constructor(schema: string, table: string, tableSize?: number, recordCount?: number, transactionLogSize?: number, transactionLogRecordCount?: number);
|
|
20
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TableSizeObject = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Represents the table size entry for a RocksDB or LMDB table.
|
|
6
|
+
*/
|
|
7
|
+
class TableSizeObject {
|
|
8
|
+
schema;
|
|
9
|
+
table;
|
|
10
|
+
tableSize;
|
|
11
|
+
recordCount;
|
|
12
|
+
transactionLogSize;
|
|
13
|
+
transactionLogRecordCount;
|
|
14
|
+
/**
|
|
15
|
+
* @param schema - The schema of the table
|
|
16
|
+
* @param table - The name of the table
|
|
17
|
+
* @param tableSize - The data size of the table in bytes
|
|
18
|
+
* @param recordCount - The number of entries in the table
|
|
19
|
+
* @param transactionLogSize - The number of entries in the transaction log
|
|
20
|
+
* @param transactionLogRecordCount - The data size of the transaction log in bytes
|
|
21
|
+
*/
|
|
22
|
+
constructor(schema, table, tableSize = 0, recordCount = 0, transactionLogSize = 0, transactionLogRecordCount) {
|
|
23
|
+
this.schema = schema;
|
|
24
|
+
this.table = table;
|
|
25
|
+
this.tableSize = tableSize;
|
|
26
|
+
this.recordCount = recordCount;
|
|
27
|
+
this.transactionLogSize = transactionLogSize;
|
|
28
|
+
this.transactionLogRecordCount = transactionLogRecordCount;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
exports.TableSizeObject = TableSizeObject;
|
|
32
|
+
//# sourceMappingURL=TableSizeObject.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TableSizeObject.js","sourceRoot":"","sources":["../../../dataLayer/harperBridge/TableSizeObject.ts"],"names":[],"mappings":";;;AAAA;;GAEG;AACH,MAAa,eAAe;IAC3B,MAAM,CAAS;IACf,KAAK,CAAS;IACd,SAAS,CAAS;IAClB,WAAW,CAAS;IACpB,kBAAkB,CAAS;IAC3B,yBAAyB,CAAU;IAEnC;;;;;;;OAOG;IACH,YACC,MAAc,EACd,KAAa,EACb,YAAoB,CAAC,EACrB,cAAsB,CAAC,EACvB,qBAA6B,CAAC,EAC9B,yBAAkC;QAElC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAC/B,IAAI,CAAC,kBAAkB,GAAG,kBAAkB,CAAC;QAC7C,IAAI,CAAC,yBAAyB,GAAG,yBAAyB,CAAC;IAC5D,CAAC;CACD;AA/BD,0CA+BC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
import { TableSizeObject } from '../../TableSizeObject.ts';
|
|
2
|
+
import type { Table } from '../../../../resources/databases.ts';
|
|
2
3
|
/**
|
|
3
|
-
*
|
|
4
|
-
* @param
|
|
5
|
-
* @returns {
|
|
4
|
+
* Calculates the number of entries & data size in bytes for a table & its transaction log
|
|
5
|
+
* @param table
|
|
6
|
+
* @returns {TableSizeObject}
|
|
6
7
|
*/
|
|
7
|
-
declare function lmdbGetTableSize(
|
|
8
|
-
import TableSizeObject = require("./TableSizeObject.js");
|
|
8
|
+
export declare function lmdbGetTableSize(table: Table): TableSizeObject;
|
|
@@ -1,28 +1,27 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.lmdbGetTableSize = lmdbGetTableSize;
|
|
7
|
+
const TableSizeObject_ts_1 = require("../../TableSizeObject.js");
|
|
8
|
+
const harper_logger_js_1 = __importDefault(require("../../../../utility/logging/harper_logger.js"));
|
|
6
9
|
/**
|
|
7
|
-
*
|
|
8
|
-
* @param
|
|
9
|
-
* @returns {
|
|
10
|
+
* Calculates the number of entries & data size in bytes for a table & its transaction log
|
|
11
|
+
* @param table
|
|
12
|
+
* @returns {TableSizeObject}
|
|
10
13
|
*/
|
|
11
|
-
|
|
12
|
-
|
|
14
|
+
function lmdbGetTableSize(table) {
|
|
15
|
+
const tableStats = new TableSizeObject_ts_1.TableSizeObject(table.databaseName, table.tableName);
|
|
13
16
|
try {
|
|
14
|
-
|
|
15
|
-
let table = getDatabases()[tableObject.schema]?.[tableObject.name];
|
|
16
|
-
let dbiStat = table.primaryStore.getStats();
|
|
17
|
+
const dbiStat = table.primaryStore.getStats();
|
|
17
18
|
//get the txn log record count
|
|
18
|
-
|
|
19
|
-
tableStats.
|
|
20
|
-
tableStats.
|
|
21
|
-
tableStats.record_count = dbiStat.entryCount;
|
|
22
|
-
tableStats.transaction_log_record_count = txnDbiStat.entryCount;
|
|
19
|
+
const txnDbiStat = table.auditStore?.getStats();
|
|
20
|
+
tableStats.recordCount = dbiStat.entryCount;
|
|
21
|
+
tableStats.transactionLogRecordCount = txnDbiStat.entryCount;
|
|
23
22
|
}
|
|
24
23
|
catch (e) {
|
|
25
|
-
|
|
24
|
+
harper_logger_js_1.default.warn(`unable to stat table dbi due to ${e}`);
|
|
26
25
|
}
|
|
27
26
|
return tableStats;
|
|
28
27
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lmdbGetTableSize.js","sourceRoot":"","sources":["../../../../../dataLayer/harperBridge/lmdbBridge/lmdbUtility/lmdbGetTableSize.
|
|
1
|
+
{"version":3,"file":"lmdbGetTableSize.js","sourceRoot":"","sources":["../../../../../dataLayer/harperBridge/lmdbBridge/lmdbUtility/lmdbGetTableSize.ts"],"names":[],"mappings":";;;;;AASA,4CAcC;AAvBD,iEAA2D;AAC3D,oGAAkE;AAGlE;;;;GAIG;AACH,SAAgB,gBAAgB,CAAC,KAAY;IAC5C,MAAM,UAAU,GAAG,IAAI,oCAAe,CAAC,KAAK,CAAC,YAAY,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC;IAC5E,IAAI,CAAC;QACJ,MAAM,OAAO,GAAG,KAAK,CAAC,YAAY,CAAC,QAAQ,EAAE,CAAC;QAE9C,8BAA8B;QAC9B,MAAM,UAAU,GAAG,KAAK,CAAC,UAAU,EAAE,QAAQ,EAAE,CAAC;QAEhD,UAAU,CAAC,WAAW,GAAG,OAAO,CAAC,UAAU,CAAC;QAC5C,UAAU,CAAC,yBAAyB,GAAG,UAAU,CAAC,UAAU,CAAC;IAC9D,CAAC;IAAC,OAAO,CAAC,EAAE,CAAC;QACZ,0BAAM,CAAC,IAAI,CAAC,mCAAmC,CAAC,EAAE,CAAC,CAAC;IACrD,CAAC;IACD,OAAO,UAAU,CAAC;AACnB,CAAC"}
|
package/dist/globals.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
export
|
|
2
|
-
export const tables: {};
|
|
1
|
+
export const contentTypes: any;
|
|
3
2
|
export const databases: {};
|
|
3
|
+
export const logger: {};
|
|
4
4
|
export const server: {};
|
|
5
|
-
export const
|
|
5
|
+
export const tables: {};
|
|
6
6
|
export const threads: any[];
|
|
7
7
|
export function _assignPackageExport(name: any, value: any): void;
|
|
8
|
+
export { undefined as createBlob, undefined as operation, undefined as Resource, undefined as transaction };
|
package/dist/globals.js
CHANGED
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
'use strict';
|
|
2
|
-
global.
|
|
3
|
-
global.
|
|
2
|
+
global.contentTypes = exports.contentTypes = null;
|
|
3
|
+
global.createBlob = exports.createBlob = undefined;
|
|
4
4
|
global.databases = exports.databases = {};
|
|
5
|
+
global.logger = exports.logger = {};
|
|
6
|
+
global.operation = exports.operation = undefined;
|
|
7
|
+
global.Resource = exports.Resource = undefined;
|
|
5
8
|
global.server = exports.server = {};
|
|
6
|
-
global.
|
|
9
|
+
global.tables = exports.tables = {};
|
|
7
10
|
global.threads = exports.threads = [];
|
|
8
|
-
global.
|
|
11
|
+
global.transaction = exports.transaction = undefined;
|
|
9
12
|
exports._assignPackageExport = (name, value) => {
|
|
10
13
|
global[name] = exports[name] = value;
|
|
11
14
|
};
|
package/dist/globals.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"globals.js","sourceRoot":"","sources":["../globals.js"],"names":[],"mappings":"AAAA,YAAY,CAAC;AACb,MAAM,CAAC,
|
|
1
|
+
{"version":3,"file":"globals.js","sourceRoot":"","sources":["../globals.js"],"names":[],"mappings":"AAAA,YAAY,CAAC;AACb,MAAM,CAAC,YAAY,GAAG,OAAO,CAAC,YAAY,GAAG,IAAI,CAAC;AAClD,MAAM,CAAC,UAAU,GAAG,OAAO,CAAC,UAAU,GAAG,SAAS,CAAC;AACnD,MAAM,CAAC,SAAS,GAAG,OAAO,CAAC,SAAS,GAAG,EAAE,CAAC;AAC1C,MAAM,CAAC,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,EAAE,CAAC;AACpC,MAAM,CAAC,SAAS,GAAG,OAAO,CAAC,SAAS,GAAG,SAAS,CAAC;AACjD,MAAM,CAAC,QAAQ,GAAG,OAAO,CAAC,QAAQ,GAAG,SAAS,CAAC;AAC/C,MAAM,CAAC,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,EAAE,CAAC;AACpC,MAAM,CAAC,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,EAAE,CAAC;AACpC,MAAM,CAAC,OAAO,GAAG,OAAO,CAAC,OAAO,GAAG,EAAE,CAAC;AACtC,MAAM,CAAC,WAAW,GAAG,OAAO,CAAC,WAAW,GAAG,SAAS,CAAC;AACrD,OAAO,CAAC,oBAAoB,GAAG,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE;IAC9C,MAAM,CAAC,IAAI,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,GAAG,KAAK,CAAC;AACtC,CAAC,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,45 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
export
|
|
5
|
-
export
|
|
6
|
-
export
|
|
7
|
-
export {
|
|
1
|
+
export { RequestTarget } from './resources/RequestTarget.ts';
|
|
2
|
+
export { getContext, getResponse, getUser } from './security/jsLoader.ts';
|
|
3
|
+
export type { Query, Context, Session, SourceContext, SubscriptionRequest, RequestTargetOrId, ResourceInterface, } from './resources/ResourceInterface.ts';
|
|
4
|
+
export type { User } from './security/user.ts';
|
|
5
|
+
export type { RecordObject } from './resources/RecordEncoder.ts';
|
|
6
|
+
export type { IterableEventQueue } from './resources/IterableEventQueue.ts';
|
|
7
|
+
export type { Table } from './resources/databases.ts';
|
|
8
|
+
export type { Attribute } from './resources/Table.ts';
|
|
9
|
+
export type { Scope } from './components/Scope.ts';
|
|
10
|
+
export type { FilesOption, FilesOptionObject } from './components/deriveGlobOptions.ts';
|
|
11
|
+
export type { FileAndURLPathConfig } from './components/Component.ts';
|
|
12
|
+
export type { OptionsWatcher, Config, ConfigValue } from './components/OptionsWatcher.ts';
|
|
13
|
+
export type { EntryHandler, BaseEntry, FileEntry, EntryEvent, AddFileEvent, ChangeFileEvent, UnlinkFileEvent, FileEntryEvent, AddDirectoryEvent, UnlinkDirectoryEvent, DirectoryEntryEvent, } from './components/EntryHandler.ts';
|
|
14
|
+
import type { contentTypes as ContentTypesImport } from './server/serverHelpers/contentTypes.ts';
|
|
15
|
+
import type { createBlob as CreateBlobImport } from './resources/blob.ts';
|
|
16
|
+
import type { databases as DatabasesImport } from './resources/databases.ts';
|
|
17
|
+
import type { Logger } from './utility/logging/logger.ts';
|
|
18
|
+
import type { operation as OperationImport } from './server/serverHelpers/serverUtilities.ts';
|
|
19
|
+
import type { Resource as ResourceImport } from './resources/Resource.ts';
|
|
20
|
+
import type { server as ServerImport } from './server/Server.ts';
|
|
21
|
+
import type { tables as TablesImport } from './resources/databases.ts';
|
|
22
|
+
type ThreadsImport = unknown[];
|
|
23
|
+
import type { transaction as TransactionImport } from './resources/transaction.ts';
|
|
24
|
+
declare global {
|
|
25
|
+
const contentTypes: typeof ContentTypesImport;
|
|
26
|
+
const createBlob: typeof CreateBlobImport;
|
|
27
|
+
const databases: typeof DatabasesImport;
|
|
28
|
+
const logger: Logger;
|
|
29
|
+
const operation: typeof OperationImport;
|
|
30
|
+
const Resource: typeof ResourceImport;
|
|
31
|
+
const server: typeof ServerImport;
|
|
32
|
+
const tables: typeof TablesImport;
|
|
33
|
+
const threads: ThreadsImport;
|
|
34
|
+
const transaction: typeof TransactionImport;
|
|
35
|
+
}
|
|
36
|
+
export declare const contentTypes: typeof ContentTypesImport;
|
|
37
|
+
export declare const createBlob: typeof CreateBlobImport;
|
|
38
|
+
export declare const databases: typeof DatabasesImport;
|
|
39
|
+
export declare const logger: Logger;
|
|
40
|
+
export declare const operation: typeof OperationImport;
|
|
41
|
+
export declare const Resource: typeof ResourceImport;
|
|
42
|
+
export declare const server: typeof ServerImport;
|
|
43
|
+
export declare const tables: typeof TablesImport;
|
|
44
|
+
export declare const threads: ThreadsImport;
|
|
45
|
+
export declare const transaction: typeof TransactionImport;
|
package/dist/index.js
CHANGED
|
@@ -1,42 +1,38 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.getUser = exports.getResponse = exports.getContext = exports.RequestTarget = void 0;
|
|
7
|
+
// Prevents server from starting in worker threads if this was directly imported from a non-server user thread
|
|
8
|
+
const node_worker_threads_1 = __importDefault(require("node:worker_threads"));
|
|
9
|
+
if (!node_worker_threads_1.default.isMainThread) {
|
|
10
|
+
// @ts-expect-error - Idk this has been here for a while. Types say its readonly, but that must not be true.
|
|
11
|
+
if (!node_worker_threads_1.default.workerData)
|
|
12
|
+
node_worker_threads_1.default.workerData = {};
|
|
13
|
+
node_worker_threads_1.default.workerData.noServerStart = true;
|
|
8
14
|
}
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
exports.
|
|
12
|
-
|
|
13
|
-
exports.
|
|
14
|
-
exports.
|
|
15
|
-
exports.
|
|
16
|
-
exports
|
|
17
|
-
exports.
|
|
18
|
-
exports.
|
|
19
|
-
exports.Logger = undefined;
|
|
20
|
-
exports.Query = undefined;
|
|
21
|
-
exports.RecordObject = undefined;
|
|
22
|
-
exports.RequestTarget = undefined;
|
|
23
|
-
exports.RequestTargetOrId = undefined;
|
|
24
|
-
exports.Resource = undefined;
|
|
25
|
-
exports.ResourceInterface = undefined;
|
|
26
|
-
exports.Scope = undefined;
|
|
27
|
-
exports.Session = undefined;
|
|
28
|
-
exports.SourceContext = undefined;
|
|
29
|
-
exports.SubscriptionRequest = undefined;
|
|
30
|
-
exports.Table = undefined;
|
|
31
|
-
exports.User = undefined;
|
|
32
|
-
// these are all overwritten by the globals, but need to be here so that Node's static
|
|
33
|
-
// exports parser can analyze them
|
|
34
|
-
exports.tables = {};
|
|
15
|
+
// Regular exports (don't require the same initialization as the globals at the end of this file do)
|
|
16
|
+
var RequestTarget_ts_1 = require("./resources/RequestTarget.js");
|
|
17
|
+
Object.defineProperty(exports, "RequestTarget", { enumerable: true, get: function () { return RequestTarget_ts_1.RequestTarget; } });
|
|
18
|
+
var jsLoader_ts_1 = require("./security/jsLoader.js");
|
|
19
|
+
Object.defineProperty(exports, "getContext", { enumerable: true, get: function () { return jsLoader_ts_1.getContext; } });
|
|
20
|
+
Object.defineProperty(exports, "getResponse", { enumerable: true, get: function () { return jsLoader_ts_1.getResponse; } });
|
|
21
|
+
Object.defineProperty(exports, "getUser", { enumerable: true, get: function () { return jsLoader_ts_1.getUser; } });
|
|
22
|
+
// Actual define the values on the `exports` for CJS static analysis
|
|
23
|
+
exports.contentTypes = null;
|
|
24
|
+
exports.createBlob = undefined;
|
|
35
25
|
exports.databases = {};
|
|
36
|
-
exports.
|
|
26
|
+
exports.logger = {};
|
|
27
|
+
exports.operation = undefined;
|
|
28
|
+
exports.Resource = undefined;
|
|
37
29
|
exports.server = {};
|
|
38
|
-
exports.
|
|
30
|
+
exports.tables = {};
|
|
39
31
|
exports.threads = [];
|
|
40
|
-
exports.
|
|
41
|
-
|
|
32
|
+
exports.transaction = undefined;
|
|
33
|
+
// And finally assign globals to exports.
|
|
34
|
+
// These values are populated at runtime by `_assignPackageExport()` in their respective modules
|
|
35
|
+
// (e.g. Resource.ts, databases.ts, Server.ts, etc.)
|
|
36
|
+
const threadServer_js_1 = require("./server/threads/threadServer.js");
|
|
37
|
+
Object.assign(exports, threadServer_js_1.globals);
|
|
42
38
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";;;;;;AAAA,8GAA8G;AAC9G,8EAAgD;AAChD,IAAI,CAAC,6BAAa,CAAC,YAAY,EAAE,CAAC;IACjC,4GAA4G;IAC5G,IAAI,CAAC,6BAAa,CAAC,UAAU;QAAE,6BAAa,CAAC,UAAU,GAAG,EAAE,CAAC;IAC7D,6BAAa,CAAC,UAAU,CAAC,aAAa,GAAG,IAAI,CAAC;AAC/C,CAAC;AAED,oGAAoG;AACpG,iEAA6D;AAApD,iHAAA,aAAa,OAAA;AACtB,sDAA0E;AAAjE,yGAAA,UAAU,OAAA;AAAE,0GAAA,WAAW,OAAA;AAAE,sGAAA,OAAO,OAAA;AAqFzC,oEAAoE;AACpE,OAAO,CAAC,YAAY,GAAG,IAAI,CAAC;AAC5B,OAAO,CAAC,UAAU,GAAG,SAAS,CAAC;AAC/B,OAAO,CAAC,SAAS,GAAG,EAAE,CAAC;AACvB,OAAO,CAAC,MAAM,GAAG,EAAE,CAAC;AACpB,OAAO,CAAC,SAAS,GAAG,SAAS,CAAC;AAC9B,OAAO,CAAC,QAAQ,GAAG,SAAS,CAAC;AAC7B,OAAO,CAAC,MAAM,GAAG,EAAE,CAAC;AACpB,OAAO,CAAC,MAAM,GAAG,EAAE,CAAC;AACpB,OAAO,CAAC,OAAO,GAAG,EAAE,CAAC;AACrB,OAAO,CAAC,WAAW,GAAG,SAAS,CAAC;AAEhC,yCAAyC;AACzC,gGAAgG;AAChG,oDAAoD;AACpD,sEAA2D;AAE3D,MAAM,CAAC,MAAM,CAAC,OAAO,EAAE,yBAAO,CAAC,CAAC"}
|
|
@@ -251,7 +251,12 @@ class DatabaseTransaction {
|
|
|
251
251
|
if (!outstandingCommit) {
|
|
252
252
|
outstandingCommit = commitResolution;
|
|
253
253
|
outstandingCommitStart = performance.now();
|
|
254
|
-
outstandingCommit
|
|
254
|
+
outstandingCommit
|
|
255
|
+
// if `commitResolution` rejects with and `ERR_BUSY` error, the retry logic
|
|
256
|
+
// will correct course, but the reject will still be propagated on the
|
|
257
|
+
// `outstandingCommit` promise and needs to be caught and silenced
|
|
258
|
+
.catch(() => { })
|
|
259
|
+
.finally(() => {
|
|
255
260
|
outstandingCommit = null;
|
|
256
261
|
});
|
|
257
262
|
}
|