harperdb 4.3.0-beta.6 → 4.3.0-beta.8

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "harperdb",
3
- "version": "4.3.0-beta.6",
3
+ "version": "4.3.0-beta.8",
4
4
  "description": "HarperDB is a distributed SQL & NoSQL data platform focused on speed, flexibility, and ease of use.",
5
5
  "keywords": [
6
6
  "database",
@@ -19,8 +19,8 @@
19
19
  },
20
20
  "engines": {
21
21
  "minimum-node": "16.0.0",
22
- "go-lang": "1.21.1",
23
- "nats-server": "2.10.1"
22
+ "go-lang": "1.21.6",
23
+ "nats-server": "2.10.10"
24
24
  },
25
25
  "exports": {
26
26
  ".": "./index.js"
@@ -68,7 +68,7 @@
68
68
  "json2csv": "5.0.7",
69
69
  "jsonata": "1.8.6",
70
70
  "jsonwebtoken": "9.0.2",
71
- "lmdb": "2.10.0-beta.2",
71
+ "lmdb": "2.10.0-beta.4",
72
72
  "lodash": "4.17.21",
73
73
  "mathjs": "11.11.2",
74
74
  "minimist": "1.2.8",
@@ -76,7 +76,7 @@
76
76
  "moment": "2.29.4",
77
77
  "mqtt-packet": "~8.2.1",
78
78
  "msgpackr": "1.10.1",
79
- "nats": "2.17.0",
79
+ "nats": "2.19.0",
80
80
  "needle": "3.2.0",
81
81
  "node-stream-zip": "1.15.0",
82
82
  "node-unix-socket": "0.2.5",
@@ -1,8 +1,8 @@
1
1
  import { RootDatabase, Transaction as LMDBTransaction } from 'lmdb';
2
2
  export declare enum TRANSACTION_STATE {
3
- OPEN = 0,// the transaction is open and can be used for reads and writes
4
- LINGERING = 1,// the transaction has completed a read, but can be used for immediate writes
5
- CLOSED = 2
3
+ CLOSED = 0,// the transaction has been committed or aborted and can no longer be used for writes (if read txn is active, it can be used for reads)
4
+ OPEN = 1,// the transaction is open and can be used for reads and writes
5
+ LINGERING = 2
6
6
  }
7
7
  export declare class DatabaseTransaction implements Transaction {
8
8
  writes: any[];
@@ -19,6 +19,7 @@ export declare class DatabaseTransaction implements Transaction {
19
19
  useReadTxn(): LMDBTransaction;
20
20
  doneReadTxn(): void;
21
21
  disregardReadTxn(): void;
22
+ checkOverloaded(): void;
22
23
  addWrite(operation: any): Promise<CommitResolution>;
23
24
  removeWrite(operation: any): void;
24
25
  /**
@@ -39,6 +39,7 @@ interface TableDefinition {
39
39
  eviction?: number;
40
40
  scanInterval?: number;
41
41
  audit?: boolean;
42
+ sealed?: boolean;
42
43
  trackDeletes?: boolean;
43
44
  attributes: any[];
44
45
  schemaDefined?: boolean;
@@ -68,8 +69,9 @@ export declare function dropDatabase(database_name: any): Promise<void>;
68
69
  * @param scanInterval
69
70
  * @param attributes
70
71
  * @param audit
72
+ * @param sealed
71
73
  */
72
- export declare function table({ table: table_name, database: database_name, expiration, eviction, scanInterval: scan_interval, attributes, audit, trackDeletes: track_deletes, schemaDefined: schema_defined, origin, }: TableDefinition): {
74
+ export declare function table({ table: table_name, database: database_name, expiration, eviction, scanInterval: scan_interval, attributes, audit, sealed, trackDeletes: track_deletes, schemaDefined: schema_defined, origin, }: TableDefinition): {
73
75
  new (identifier: import("./ResourceInterface").Id, source: any): {
74
76
  ensureLoaded(): any;
75
77
  get(query?: string | import("./ResourceInterface").Query): void | object | Promise<void | object>;