@utaba/deep-memory 0.1.0 → 0.2.0
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/{StorageProvider-CkFjdboX.d.cts → StorageProvider-C3tKhfuw.d.cts} +14 -3
- package/dist/{StorageProvider-CJjz8uBY.d.ts → StorageProvider-DR9HLYHJ.d.ts} +14 -3
- package/dist/index.cjs +960 -143
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +65 -13
- package/dist/index.d.ts +65 -13
- package/dist/index.js +954 -143
- package/dist/index.js.map +1 -1
- package/dist/{portability-DdlNYXGX.d.cts → portability-DdjsCB07.d.cts} +44 -1
- package/dist/{portability-DdlNYXGX.d.ts → portability-DdjsCB07.d.ts} +44 -1
- package/dist/providers/index.cjs.map +1 -1
- package/dist/providers/index.d.cts +56 -3
- package/dist/providers/index.d.ts +56 -3
- package/dist/testing/conformance.d.cts +2 -2
- package/dist/testing/conformance.d.ts +2 -2
- package/dist/traversal-9JdiqjZ9.d.ts +177 -0
- package/dist/traversal-BB_yERbf.d.cts +177 -0
- package/dist/types/index.cjs.map +1 -1
- package/dist/types/index.d.cts +3 -2
- package/dist/types/index.d.ts +3 -2
- package/package.json +1 -1
|
@@ -1,5 +1,16 @@
|
|
|
1
|
-
import { S as StorageRepositoryConfig,
|
|
1
|
+
import { S as StorageRepositoryConfig, c as StoredRepository, R as RepositoryFilter, d as PaginatedResult, e as StoredRepositorySummary, f as RepositoryUpdate, g as RepositoryStats, M as MemoryVocabulary, h as PaginationOptions, V as VocabularyChangeRecord, i as StoredEntity, j as StoredEntityUpdate, k as StorageFindQuery, l as StoredRelationship, m as RelationshipQueryOptions, n as StorageExploreOptions, o as StorageNeighbourhood, p as StoragePathOptions, q as StoragePathResult, r as StorageTimelineOptions, s as StorageTimelineResult, t as ExportChunk, I as ImportChunk, B as BulkImportResult } from './portability-DdjsCB07.cjs';
|
|
2
2
|
|
|
3
|
+
/** Result returned by ensureSchema describing what actions were taken. */
|
|
4
|
+
interface EnsureSchemaResult {
|
|
5
|
+
/** Whether the database was created (only relevant for server-based providers) */
|
|
6
|
+
databaseCreated: boolean;
|
|
7
|
+
/** Whether schema tables/indexes were created */
|
|
8
|
+
schemaCreated: boolean;
|
|
9
|
+
/** Whether the schema was already up to date (no changes needed) */
|
|
10
|
+
alreadyUpToDate: boolean;
|
|
11
|
+
/** Schema version after the operation */
|
|
12
|
+
schemaVersion: number;
|
|
13
|
+
}
|
|
3
14
|
/**
|
|
4
15
|
* StorageProvider — the primary persistence interface.
|
|
5
16
|
*
|
|
@@ -16,7 +27,7 @@ interface StorageProvider {
|
|
|
16
27
|
/** Optional cleanup (e.g., close connections) */
|
|
17
28
|
dispose?(): Promise<void>;
|
|
18
29
|
/** Optional schema creation / migration (e.g., create tables if they don't exist) */
|
|
19
|
-
ensureSchema?(): Promise<
|
|
30
|
+
ensureSchema?(): Promise<EnsureSchemaResult>;
|
|
20
31
|
createRepository(config: StorageRepositoryConfig): Promise<StoredRepository>;
|
|
21
32
|
getRepository(repositoryId: string): Promise<StoredRepository | null>;
|
|
22
33
|
listRepositories(filter?: RepositoryFilter): Promise<PaginatedResult<StoredRepositorySummary>>;
|
|
@@ -53,4 +64,4 @@ interface StorageProvider {
|
|
|
53
64
|
importBulk(repositoryId: string, data: ImportChunk[]): Promise<BulkImportResult>;
|
|
54
65
|
}
|
|
55
66
|
|
|
56
|
-
export type { StorageProvider as S };
|
|
67
|
+
export type { EnsureSchemaResult as E, StorageProvider as S };
|
|
@@ -1,5 +1,16 @@
|
|
|
1
|
-
import { S as StorageRepositoryConfig,
|
|
1
|
+
import { S as StorageRepositoryConfig, c as StoredRepository, R as RepositoryFilter, d as PaginatedResult, e as StoredRepositorySummary, f as RepositoryUpdate, g as RepositoryStats, M as MemoryVocabulary, h as PaginationOptions, V as VocabularyChangeRecord, i as StoredEntity, j as StoredEntityUpdate, k as StorageFindQuery, l as StoredRelationship, m as RelationshipQueryOptions, n as StorageExploreOptions, o as StorageNeighbourhood, p as StoragePathOptions, q as StoragePathResult, r as StorageTimelineOptions, s as StorageTimelineResult, t as ExportChunk, I as ImportChunk, B as BulkImportResult } from './portability-DdjsCB07.js';
|
|
2
2
|
|
|
3
|
+
/** Result returned by ensureSchema describing what actions were taken. */
|
|
4
|
+
interface EnsureSchemaResult {
|
|
5
|
+
/** Whether the database was created (only relevant for server-based providers) */
|
|
6
|
+
databaseCreated: boolean;
|
|
7
|
+
/** Whether schema tables/indexes were created */
|
|
8
|
+
schemaCreated: boolean;
|
|
9
|
+
/** Whether the schema was already up to date (no changes needed) */
|
|
10
|
+
alreadyUpToDate: boolean;
|
|
11
|
+
/** Schema version after the operation */
|
|
12
|
+
schemaVersion: number;
|
|
13
|
+
}
|
|
3
14
|
/**
|
|
4
15
|
* StorageProvider — the primary persistence interface.
|
|
5
16
|
*
|
|
@@ -16,7 +27,7 @@ interface StorageProvider {
|
|
|
16
27
|
/** Optional cleanup (e.g., close connections) */
|
|
17
28
|
dispose?(): Promise<void>;
|
|
18
29
|
/** Optional schema creation / migration (e.g., create tables if they don't exist) */
|
|
19
|
-
ensureSchema?(): Promise<
|
|
30
|
+
ensureSchema?(): Promise<EnsureSchemaResult>;
|
|
20
31
|
createRepository(config: StorageRepositoryConfig): Promise<StoredRepository>;
|
|
21
32
|
getRepository(repositoryId: string): Promise<StoredRepository | null>;
|
|
22
33
|
listRepositories(filter?: RepositoryFilter): Promise<PaginatedResult<StoredRepositorySummary>>;
|
|
@@ -53,4 +64,4 @@ interface StorageProvider {
|
|
|
53
64
|
importBulk(repositoryId: string, data: ImportChunk[]): Promise<BulkImportResult>;
|
|
54
65
|
}
|
|
55
66
|
|
|
56
|
-
export type { StorageProvider as S };
|
|
67
|
+
export type { EnsureSchemaResult as E, StorageProvider as S };
|