@xyo-network/archivist-lmdb 4.1.2 → 4.1.4
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/dist/browser/index.d.ts +5 -65
- package/package.json +22 -22
package/dist/browser/index.d.ts
CHANGED
|
@@ -1,65 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
import { Database, RootDatabase } from 'lmdb';
|
|
7
|
-
import { AnyConfigSchema } from '@xyo-network/module-model';
|
|
8
|
-
|
|
9
|
-
declare const LmdbArchivistSchema: "network.xyo.archivist.lmdb";
|
|
10
|
-
type LmdbArchivistSchema = typeof LmdbArchivistSchema;
|
|
11
|
-
|
|
12
|
-
type LmdbArchivistConfigSchema = `${LmdbArchivistSchema}.config`;
|
|
13
|
-
declare const LmdbArchivistConfigSchema: LmdbArchivistConfigSchema;
|
|
14
|
-
type LmdbArchivistConfig<TStoreName extends string = string> = ArchivistConfig<{
|
|
15
|
-
/**
|
|
16
|
-
* If true, the store will be cleared on start
|
|
17
|
-
*/
|
|
18
|
-
clearStoreOnStart?: boolean;
|
|
19
|
-
/**
|
|
20
|
-
* The database name - also used as the filename for the db
|
|
21
|
-
*/
|
|
22
|
-
dbName?: string;
|
|
23
|
-
/**
|
|
24
|
-
* The location where the folder for the db will be created
|
|
25
|
-
*/
|
|
26
|
-
location?: string;
|
|
27
|
-
schema: LmdbArchivistConfigSchema;
|
|
28
|
-
/**
|
|
29
|
-
* The name of the object store - becomes a sub-level
|
|
30
|
-
*/
|
|
31
|
-
storeName?: TStoreName;
|
|
32
|
-
}>;
|
|
33
|
-
|
|
34
|
-
interface LmdbArchivistParams extends ArchivistParams<AnyConfigSchema<LmdbArchivistConfig>> {
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
declare class LmdbArchivist<TParams extends LmdbArchivistParams = LmdbArchivistParams, TEventData extends ArchivistModuleEventData = ArchivistModuleEventData> extends AbstractArchivist<TParams, TEventData> {
|
|
38
|
-
static readonly configSchemas: Schema[];
|
|
39
|
-
static readonly defaultConfigSchema: Schema;
|
|
40
|
-
static readonly labels: {
|
|
41
|
-
"network.xyo.storage.class": string;
|
|
42
|
-
};
|
|
43
|
-
protected static readonly dataHashIndex: IndexDescription;
|
|
44
|
-
protected static readonly sequenceIndex: IndexDescription;
|
|
45
|
-
protected dataHashIndex: Database<Hash, string>;
|
|
46
|
-
protected db: RootDatabase;
|
|
47
|
-
protected hashIndex: Database<WithStorageMeta<Payload>, Hash>;
|
|
48
|
-
protected sequenceIndex: Database<Hash, Hex>;
|
|
49
|
-
get dbName(): string;
|
|
50
|
-
get folderPath(): string;
|
|
51
|
-
get location(): string;
|
|
52
|
-
get queries(): string[];
|
|
53
|
-
get storeName(): string;
|
|
54
|
-
startHandler(): Promise<void>;
|
|
55
|
-
protected allHandler(): WithStorageMeta<Payload>[];
|
|
56
|
-
protected clearHandler(): Promise<void>;
|
|
57
|
-
protected commitHandler(): Promise<BoundWitness[]>;
|
|
58
|
-
protected deleteHandler(hashes: Hash[]): Promise<WithStorageMeta<Payload>[]>;
|
|
59
|
-
protected getHandler(hashes: Hash[]): WithStorageMeta<Payload>[];
|
|
60
|
-
protected insertHandler(payloads: WithStorageMeta<Payload>[]): Promise<WithStorageMeta<Payload>[]>;
|
|
61
|
-
protected nextHandler(options?: ArchivistNextOptions): WithStorageMeta<Payload>[];
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
export { LmdbArchivist, LmdbArchivistConfigSchema, LmdbArchivistSchema };
|
|
65
|
-
export type { LmdbArchivistConfig, LmdbArchivistParams };
|
|
1
|
+
export * from './Archivist.ts';
|
|
2
|
+
export * from './Config.ts';
|
|
3
|
+
export * from './Params.ts';
|
|
4
|
+
export * from './Schema.ts';
|
|
5
|
+
//# sourceMappingURL=index.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xyo-network/archivist-lmdb",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.4",
|
|
4
4
|
"description": "Primary SDK for using XYO Protocol 2.0",
|
|
5
5
|
"homepage": "https://xyo.network",
|
|
6
6
|
"bugs": {
|
|
@@ -29,30 +29,30 @@
|
|
|
29
29
|
"module": "dist/browser/index.mjs",
|
|
30
30
|
"types": "dist/browser/index.d.ts",
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@xylabs/assert": "^4.13.
|
|
33
|
-
"@xylabs/exists": "^4.13.
|
|
34
|
-
"@xylabs/hex": "^4.13.
|
|
35
|
-
"@xylabs/promise": "^4.13.
|
|
36
|
-
"@xyo-network/archivist-abstract": "^4.1.
|
|
37
|
-
"@xyo-network/archivist-model": "^4.1.
|
|
38
|
-
"@xyo-network/boundwitness-model": "^4.1.
|
|
39
|
-
"@xyo-network/module-model": "^4.1.
|
|
40
|
-
"@xyo-network/payload-builder": "^4.1.
|
|
41
|
-
"@xyo-network/payload-model": "^4.1.
|
|
32
|
+
"@xylabs/assert": "^4.13.16",
|
|
33
|
+
"@xylabs/exists": "^4.13.16",
|
|
34
|
+
"@xylabs/hex": "^4.13.16",
|
|
35
|
+
"@xylabs/promise": "^4.13.16",
|
|
36
|
+
"@xyo-network/archivist-abstract": "^4.1.4",
|
|
37
|
+
"@xyo-network/archivist-model": "^4.1.4",
|
|
38
|
+
"@xyo-network/boundwitness-model": "^4.1.4",
|
|
39
|
+
"@xyo-network/module-model": "^4.1.4",
|
|
40
|
+
"@xyo-network/payload-builder": "^4.1.4",
|
|
41
|
+
"@xyo-network/payload-model": "^4.1.4",
|
|
42
42
|
"lmdb": "^3.4.1"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"@xylabs/delay": "^4.13.
|
|
46
|
-
"@xylabs/object": "^4.13.
|
|
47
|
-
"@xylabs/ts-scripts-yarn3": "^7.0.0-rc.
|
|
48
|
-
"@xylabs/tsconfig": "^7.0.0-rc.
|
|
49
|
-
"@xylabs/vitest-extended": "^4.13.
|
|
50
|
-
"@xyo-network/account": "^4.1.
|
|
51
|
-
"@xyo-network/account-model": "^4.1.
|
|
52
|
-
"@xyo-network/archivist-acceptance-tests": "^4.1.
|
|
53
|
-
"@xyo-network/id-payload-plugin": "^4.1.
|
|
54
|
-
"@xyo-network/payload-wrapper": "^4.1.
|
|
55
|
-
"@xyo-network/wallet": "^4.1.
|
|
45
|
+
"@xylabs/delay": "^4.13.16",
|
|
46
|
+
"@xylabs/object": "^4.13.16",
|
|
47
|
+
"@xylabs/ts-scripts-yarn3": "^7.0.0-rc.27",
|
|
48
|
+
"@xylabs/tsconfig": "^7.0.0-rc.27",
|
|
49
|
+
"@xylabs/vitest-extended": "^4.13.16",
|
|
50
|
+
"@xyo-network/account": "^4.1.4",
|
|
51
|
+
"@xyo-network/account-model": "^4.1.4",
|
|
52
|
+
"@xyo-network/archivist-acceptance-tests": "^4.1.4",
|
|
53
|
+
"@xyo-network/id-payload-plugin": "^4.1.4",
|
|
54
|
+
"@xyo-network/payload-wrapper": "^4.1.4",
|
|
55
|
+
"@xyo-network/wallet": "^4.1.4",
|
|
56
56
|
"typescript": "^5.8.3",
|
|
57
57
|
"uuid": "^11.1.0",
|
|
58
58
|
"vitest": "^3.2.4"
|