dataply 0.0.7 → 0.0.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.
@@ -94,6 +94,14 @@ export declare class DataplyAPI {
94
94
  * @returns PK of the added data
95
95
  */
96
96
  insert(data: string | Uint8Array, incrementRowCount?: boolean, tx?: Transaction): Promise<number>;
97
+ /**
98
+ * Inserts overflow data forcly. Returns the PK of the added row.
99
+ * @param data Data to add
100
+ * @param incrementRowCount Whether to increment the row count to metadata
101
+ * @param tx Transaction
102
+ * @returns PK of the added data
103
+ */
104
+ insertAsOverflow(data: string | Uint8Array, incrementRowCount?: boolean, tx?: Transaction): Promise<number>;
97
105
  /**
98
106
  * Inserts multiple data in batch.
99
107
  * If a transaction is not provided, it internally creates a single transaction to process.
@@ -64,7 +64,7 @@ export declare class RowTableEngine {
64
64
  * @param tx Transaction
65
65
  * @returns PK of the inserted data
66
66
  */
67
- insert(data: Uint8Array, incrementRowCount: boolean, tx: Transaction): Promise<number>;
67
+ insert(data: Uint8Array, incrementRowCount: boolean, overflowForcly: boolean, tx: Transaction): Promise<number>;
68
68
  /**
69
69
  * Looks up the RID by PK.
70
70
  * Checks Pending Updates first if a transaction exists.
@@ -2,7 +2,7 @@ export * from 'serializable-bptree';
2
2
  export * from 'ryoiki';
3
3
  export * from 'cache-entanglement';
4
4
  export type { DataplyOptions } from './types';
5
- export type * from './core/Page';
5
+ export * from './core/Page';
6
6
  export { Dataply } from './core/Dataply';
7
7
  export { DataplyAPI } from './core/DataplyAPI';
8
8
  export { Transaction } from './core/transaction/Transaction';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dataply",
3
- "version": "0.0.7",
3
+ "version": "0.0.8",
4
4
  "description": "A lightweight storage engine for Node.js with support for MVCC, WAL.",
5
5
  "license": "MIT",
6
6
  "author": "izure <admin@izure.org>",
@@ -1,6 +0,0 @@
1
- import { BPTreeAsync } from 'serializable-bptree';
2
- export declare class RowIndexBPTree<K, V, C> extends BPTreeAsync<K, V> {
3
- private _bindContext?;
4
- bindContext(context?: C): void;
5
- getContext(): C | undefined;
6
- }