@nymphjs/driver-postgresql 1.0.0-beta.97 → 1.0.0-beta.99
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/CHANGELOG.md +20 -0
- package/dist/PostgreSQLDriver.d.ts +18 -2
- package/dist/PostgreSQLDriver.js +454 -137
- package/dist/PostgreSQLDriver.js.map +1 -1
- package/package.json +5 -4
- package/src/PostgreSQLDriver.ts +1075 -426
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,26 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [1.0.0-beta.99](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.98...v1.0.0-beta.99) (2025-11-26)
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
- add check for tokens table to needsMigration functions ([ebffa66](https://github.com/sciactive/nymphjs/commit/ebffa6671d040c5064f0e47193ba14e2e115796a))
|
|
11
|
+
- update tokenizer and fix issue with tilmeld test ([1df81fd](https://github.com/sciactive/nymphjs/commit/1df81fdeab2c639dc669bd92c09faa220bb9a6ff))
|
|
12
|
+
|
|
13
|
+
### Features
|
|
14
|
+
|
|
15
|
+
- add full-text-search, but this is interim and will be redesigned ([56333db](https://github.com/sciactive/nymphjs/commit/56333dbe6a25755baed4e108ba4d71b3187fe8d0))
|
|
16
|
+
- add live migration and token import functions ([b81037d](https://github.com/sciactive/nymphjs/commit/b81037d5d9fd0676e98760d51dcdc3e414951287))
|
|
17
|
+
- add sciactive tokenizer based full text search ([173c96e](https://github.com/sciactive/nymphjs/commit/173c96e02827e8ca155f55e08f33e8cdef475ab9))
|
|
18
|
+
- clean up old fts code, get ready for new implementation ([e8d7a6d](https://github.com/sciactive/nymphjs/commit/e8d7a6d6c6cdbb3dd74bd3e6a104e02a4caf283b))
|
|
19
|
+
|
|
20
|
+
# [1.0.0-beta.98](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.97...v1.0.0-beta.98) (2025-10-24)
|
|
21
|
+
|
|
22
|
+
### Features
|
|
23
|
+
|
|
24
|
+
- add new indexes for better access control performance ([f76b001](https://github.com/sciactive/nymphjs/commit/f76b001c07aea38f21cb5a3373ad5a9eaadbb242))
|
|
25
|
+
|
|
6
26
|
# [1.0.0-beta.97](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.96...v1.0.0-beta.97) (2025-10-04)
|
|
7
27
|
|
|
8
28
|
**Note:** Version bump only for package @nymphjs/driver-postgresql
|
|
@@ -52,6 +52,11 @@ export default class PostgreSQLDriver extends NymphDriver {
|
|
|
52
52
|
* @returns Whether this instance is connected to a PostgreSQL database.
|
|
53
53
|
*/
|
|
54
54
|
isConnected(): boolean;
|
|
55
|
+
private createEntitiesTable;
|
|
56
|
+
private createDataTable;
|
|
57
|
+
private createReferencesTable;
|
|
58
|
+
private createTokensTable;
|
|
59
|
+
private createUniquesTable;
|
|
55
60
|
/**
|
|
56
61
|
* Create entity tables in the database.
|
|
57
62
|
*
|
|
@@ -68,6 +73,7 @@ export default class PostgreSQLDriver extends NymphDriver {
|
|
|
68
73
|
commit(name: string): Promise<boolean>;
|
|
69
74
|
deleteEntityByID(guid: string, className?: EntityConstructor | string | null): Promise<boolean>;
|
|
70
75
|
deleteUID(name: string): Promise<boolean>;
|
|
76
|
+
getEtypes(): Promise<string[]>;
|
|
71
77
|
exportDataIterator(): AsyncGenerator<{
|
|
72
78
|
type: 'comment' | 'uid' | 'entity';
|
|
73
79
|
content: string;
|
|
@@ -97,7 +103,7 @@ export default class PostgreSQLDriver extends NymphDriver {
|
|
|
97
103
|
}, ...selectors: Selector[]): Promise<EntityObjectType<T>[]>;
|
|
98
104
|
getEntities<T extends EntityConstructor = EntityConstructor>(options?: Options<T>, ...selectors: Selector[]): Promise<EntityInstanceType<T>[]>;
|
|
99
105
|
getUID(name: string): Promise<number | null>;
|
|
100
|
-
importEntity(
|
|
106
|
+
importEntity(entity: {
|
|
101
107
|
guid: string;
|
|
102
108
|
cdate: number;
|
|
103
109
|
mdate: number;
|
|
@@ -105,6 +111,15 @@ export default class PostgreSQLDriver extends NymphDriver {
|
|
|
105
111
|
sdata: SerializedEntityData;
|
|
106
112
|
etype: string;
|
|
107
113
|
}): Promise<void>;
|
|
114
|
+
importEntityTokens(entity: {
|
|
115
|
+
guid: string;
|
|
116
|
+
cdate: number;
|
|
117
|
+
mdate: number;
|
|
118
|
+
tags: string[];
|
|
119
|
+
sdata: SerializedEntityData;
|
|
120
|
+
etype: string;
|
|
121
|
+
}): Promise<void>;
|
|
122
|
+
private importEntityInternal;
|
|
108
123
|
importUID({ name, value }: {
|
|
109
124
|
name: string;
|
|
110
125
|
value: number;
|
|
@@ -116,6 +131,7 @@ export default class PostgreSQLDriver extends NymphDriver {
|
|
|
116
131
|
setUID(name: string, curUid: number): Promise<boolean>;
|
|
117
132
|
protected internalTransaction(name: string): Promise<PostgreSQLDriverTransaction>;
|
|
118
133
|
startTransaction(name: string): Promise<import("@nymphjs/nymph").Nymph>;
|
|
119
|
-
needsMigration(): Promise<
|
|
134
|
+
needsMigration(): Promise<'json' | 'tokens' | false>;
|
|
135
|
+
liveMigration(_migrationType: 'tokenTables'): Promise<void>;
|
|
120
136
|
}
|
|
121
137
|
export {};
|