@undefineds.co/xpod 0.3.25 → 0.3.27
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/config/cloud.json +6 -5
- package/config/main.json +0 -3
- package/config/xpod.base.json +0 -32
- package/dist/api/container/index.js +3 -0
- package/dist/api/container/index.js.map +1 -1
- package/dist/api/container/routes.js +2 -0
- package/dist/api/container/routes.js.map +1 -1
- package/dist/api/container/types.d.ts +5 -0
- package/dist/api/container/types.js.map +1 -1
- package/dist/authorization/AuthMode.d.ts +8 -0
- package/dist/authorization/AuthMode.js +51 -0
- package/dist/authorization/AuthMode.js.map +1 -0
- package/dist/authorization/PodAuthorizationResources.d.ts +18 -0
- package/dist/authorization/PodAuthorizationResources.js +108 -0
- package/dist/authorization/PodAuthorizationResources.js.map +1 -0
- package/dist/cli/commands/start.js +11 -2
- package/dist/cli/commands/start.js.map +1 -1
- package/dist/components/components.jsonld +3 -2
- package/dist/components/context.jsonld +115 -14
- package/dist/index.d.ts +5 -3
- package/dist/index.js +6 -5
- package/dist/index.js.map +1 -1
- package/dist/main.js +11 -2
- package/dist/main.js.map +1 -1
- package/dist/provision/LocalPodProvisioningService.d.ts +6 -2
- package/dist/provision/LocalPodProvisioningService.js +36 -33
- package/dist/provision/LocalPodProvisioningService.js.map +1 -1
- package/dist/provision/LocalPodProvisioningService.jsonld +65 -8
- package/dist/runtime/XpodRuntime.js +0 -1
- package/dist/runtime/XpodRuntime.js.map +1 -1
- package/dist/runtime/bootstrap.d.ts +4 -2
- package/dist/runtime/bootstrap.js +43 -11
- package/dist/runtime/bootstrap.js.map +1 -1
- package/dist/runtime/css-process.d.ts +6 -1
- package/dist/runtime/css-process.js +18 -6
- package/dist/runtime/css-process.js.map +1 -1
- package/dist/runtime/lifecycle.d.ts +2 -3
- package/dist/runtime/lifecycle.js +2 -2
- package/dist/runtime/lifecycle.js.map +1 -1
- package/dist/runtime/runtime-types.d.ts +2 -1
- package/dist/runtime/runtime-types.js.map +1 -1
- package/dist/storage/accessors/SolidRdfDataAccessor.d.ts +2 -3
- package/dist/storage/accessors/SolidRdfDataAccessor.js +48 -42
- package/dist/storage/accessors/SolidRdfDataAccessor.js.map +1 -1
- package/dist/storage/accessors/SolidRdfDataAccessor.jsonld +1 -1
- package/dist/storage/keyvalue/BaseKeyValueStorage.d.ts +33 -0
- package/dist/storage/keyvalue/BaseKeyValueStorage.js +106 -0
- package/dist/storage/keyvalue/BaseKeyValueStorage.js.map +1 -0
- package/dist/storage/keyvalue/BaseKeyValueStorage.jsonld +177 -0
- package/dist/storage/keyvalue/PostgresKeyValueStorage.d.ts +9 -18
- package/dist/storage/keyvalue/PostgresKeyValueStorage.js +24 -96
- package/dist/storage/keyvalue/PostgresKeyValueStorage.js.map +1 -1
- package/dist/storage/keyvalue/PostgresKeyValueStorage.jsonld +15 -58
- package/dist/storage/keyvalue/SqliteKeyValueStorage.d.ts +9 -15
- package/dist/storage/keyvalue/SqliteKeyValueStorage.js +36 -104
- package/dist/storage/keyvalue/SqliteKeyValueStorage.js.map +1 -1
- package/dist/storage/keyvalue/SqliteKeyValueStorage.jsonld +21 -52
- package/dist/storage/quint/BaseQuintStore.d.ts +4 -1
- package/dist/storage/quint/BaseQuintStore.js +41 -52
- package/dist/storage/quint/BaseQuintStore.js.map +1 -1
- package/dist/storage/quint/PgQuintStore.d.ts +4 -3
- package/dist/storage/quint/PgQuintStore.js.map +1 -1
- package/dist/storage/quint/SqliteQuintStore.d.ts +43 -54
- package/dist/storage/quint/SqliteQuintStore.js +197 -520
- package/dist/storage/quint/SqliteQuintStore.js.map +1 -1
- package/dist/storage/quint/SqliteQuintStore.jsonld +38 -86
- package/dist/storage/rdf/PostgresRdfEngine.d.ts +118 -0
- package/dist/storage/rdf/PostgresRdfEngine.js +2609 -0
- package/dist/storage/rdf/PostgresRdfEngine.js.map +1 -0
- package/dist/storage/rdf/PostgresRdfEngine.jsonld +657 -0
- package/dist/storage/rdf/SolidRdfEngine.d.ts +2 -2
- package/dist/storage/rdf/SolidRdfEngine.js.map +1 -1
- package/dist/storage/rdf/SolidRdfEngine.jsonld +3 -0
- package/dist/storage/rdf/SolidRdfSparqlEngine.d.ts +3 -3
- package/dist/storage/rdf/SolidRdfSparqlEngine.js +20 -20
- package/dist/storage/rdf/SolidRdfSparqlEngine.js.map +1 -1
- package/dist/storage/rdf/SolidRdfSparqlEngine.jsonld +1 -1
- package/dist/storage/rdf/index.d.ts +2 -1
- package/dist/storage/rdf/index.js +3 -1
- package/dist/storage/rdf/index.js.map +1 -1
- package/dist/storage/rdf/types.d.ts +19 -0
- package/dist/storage/rdf/types.js.map +1 -1
- package/dist/storage/rdf/types.jsonld +115 -0
- package/package.json +2 -2
- package/config/runtime-open.json +0 -22
- package/dist/authorization/AuthModeSelector.d.ts +0 -10
- package/dist/authorization/AuthModeSelector.js +0 -27
- package/dist/authorization/AuthModeSelector.js.map +0 -1
- package/dist/authorization/AuthModeSelector.jsonld +0 -81
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import type { Quad } from '@rdfjs/types';
|
|
2
|
+
import type { RdfDerivedIndexRefreshResult, RdfEngineLike, RdfEngineStorageStats, RdfIndexPutOptions, RdfLocalQuery, RdfLocalQueryResult, RdfPatternQuery, RdfQuadIndexScanResult, RdfSourceInput } from './types';
|
|
3
|
+
import type { QuintPattern } from '../quint/types';
|
|
4
|
+
export interface PostgresRdfEngineOptions {
|
|
5
|
+
driver?: 'pglite' | 'pg';
|
|
6
|
+
dataDir?: string;
|
|
7
|
+
connectionString?: string;
|
|
8
|
+
host?: string;
|
|
9
|
+
port?: number;
|
|
10
|
+
database?: string;
|
|
11
|
+
user?: string;
|
|
12
|
+
password?: string;
|
|
13
|
+
pool?: any;
|
|
14
|
+
autoOpen?: boolean;
|
|
15
|
+
}
|
|
16
|
+
export declare class PostgresRdfEngine implements RdfEngineLike {
|
|
17
|
+
private executor;
|
|
18
|
+
private termDictionary;
|
|
19
|
+
private cacheEngine;
|
|
20
|
+
private cacheDir;
|
|
21
|
+
private cachePath;
|
|
22
|
+
private factsDataVersion;
|
|
23
|
+
private cacheDirty;
|
|
24
|
+
private initialized;
|
|
25
|
+
private initializing;
|
|
26
|
+
private readonly pgOptions;
|
|
27
|
+
private sharedPoolConfig;
|
|
28
|
+
private pglite;
|
|
29
|
+
private pgPool;
|
|
30
|
+
private rdf3xDataVersion;
|
|
31
|
+
private rdf3xDirty;
|
|
32
|
+
constructor(options: PostgresRdfEngineOptions);
|
|
33
|
+
open(): Promise<void>;
|
|
34
|
+
close(): Promise<void>;
|
|
35
|
+
put(quads: Quad | Quad[], options?: RdfIndexPutOptions): Promise<void>;
|
|
36
|
+
replaceSource(quads: Quad[], source: RdfSourceInput): Promise<void>;
|
|
37
|
+
deleteSource(source: string): Promise<number>;
|
|
38
|
+
delete(pattern: QuintPattern): Promise<number>;
|
|
39
|
+
applyDelta(deletes: QuintPattern[], inserts: Quad[], options?: RdfIndexPutOptions): Promise<{
|
|
40
|
+
deletedRows: number;
|
|
41
|
+
insertedRows: number;
|
|
42
|
+
}>;
|
|
43
|
+
scan(query: RdfPatternQuery): Promise<RdfQuadIndexScanResult>;
|
|
44
|
+
query(query: RdfLocalQuery): Promise<RdfLocalQueryResult>;
|
|
45
|
+
refreshDerivedIndexes(): Promise<RdfDerivedIndexRefreshResult>;
|
|
46
|
+
storageStats(): Promise<RdfEngineStorageStats>;
|
|
47
|
+
private initializeSchema;
|
|
48
|
+
private ensureCompatibleSchemaVersion;
|
|
49
|
+
private initializeRdf3xSchema;
|
|
50
|
+
private dropRdf3xDerivedSchema;
|
|
51
|
+
private clearRdf3xDerivedTables;
|
|
52
|
+
private rebuildRdf3xDerivedIndexes;
|
|
53
|
+
private scanNative;
|
|
54
|
+
private queryNative;
|
|
55
|
+
private queryNativeAggregate;
|
|
56
|
+
private canNativeAggregate;
|
|
57
|
+
private canNativeAggregateHaving;
|
|
58
|
+
private compileAggregateColumn;
|
|
59
|
+
private buildAggregateHavingClause;
|
|
60
|
+
private buildAggregateOrderClause;
|
|
61
|
+
private aggregateFilterValue;
|
|
62
|
+
private canTryNativeQuery;
|
|
63
|
+
private compileNativeJoinPatterns;
|
|
64
|
+
private allFiltersPushed;
|
|
65
|
+
private compilePushdownFilterWithIndexes;
|
|
66
|
+
private isPushdownFilter;
|
|
67
|
+
private resolvePattern;
|
|
68
|
+
private resolveTermFilter;
|
|
69
|
+
private resolveDatatypeFilter;
|
|
70
|
+
private resolveObjectRange;
|
|
71
|
+
private numericValueForPattern;
|
|
72
|
+
private lexicalValueForPattern;
|
|
73
|
+
private termOperatorValueId;
|
|
74
|
+
private compileScanSql;
|
|
75
|
+
private compileJoinSql;
|
|
76
|
+
private appendResolvedPatternConditions;
|
|
77
|
+
private appendPatternEqualityConditions;
|
|
78
|
+
private appendTermFilterCondition;
|
|
79
|
+
private appendTermTypeCondition;
|
|
80
|
+
private appendLanguageCondition;
|
|
81
|
+
private appendDatatypeCondition;
|
|
82
|
+
private appendTextSearchCondition;
|
|
83
|
+
private appendObjectRangeCondition;
|
|
84
|
+
private mergeJoinConditions;
|
|
85
|
+
private choosePermutation;
|
|
86
|
+
private permutation;
|
|
87
|
+
private estimateResolvedRows;
|
|
88
|
+
private orderJoinSources;
|
|
89
|
+
private buildOrderClause;
|
|
90
|
+
private buildJoinOrderClause;
|
|
91
|
+
private buildPagination;
|
|
92
|
+
private rowsToQuads;
|
|
93
|
+
private joinRowsToBindings;
|
|
94
|
+
private indexMetrics;
|
|
95
|
+
private localMetrics;
|
|
96
|
+
private rebuildCacheFromStore;
|
|
97
|
+
private loadCacheQuads;
|
|
98
|
+
private insertQuads;
|
|
99
|
+
private deleteExactQuad;
|
|
100
|
+
private sourceRowToInput;
|
|
101
|
+
private upsertSource;
|
|
102
|
+
private findSourceRow;
|
|
103
|
+
private bumpFactsDataVersion;
|
|
104
|
+
private readFactsDataVersion;
|
|
105
|
+
private readRdf3xFactsDataVersion;
|
|
106
|
+
private ensureReady;
|
|
107
|
+
private ensureCacheReady;
|
|
108
|
+
private markDerivedDirty;
|
|
109
|
+
private scalarCount;
|
|
110
|
+
private factsStats;
|
|
111
|
+
private rdf3xStats;
|
|
112
|
+
private collectSpaceObjects;
|
|
113
|
+
private requireExecutor;
|
|
114
|
+
private requireDictionary;
|
|
115
|
+
private requireCache;
|
|
116
|
+
private requiredTerm;
|
|
117
|
+
private openExecutor;
|
|
118
|
+
}
|