@nymphjs/driver-postgresql 1.0.0-beta.10 → 1.0.0-beta.100

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 CHANGED
@@ -3,6 +3,455 @@
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.100](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.99...v1.0.0-beta.100) (2025-11-29)
7
+
8
+ ### Bug Fixes
9
+
10
+ - update tokenizer to get the packaging fix ([4cfbbb4](https://github.com/sciactive/nymphjs/commit/4cfbbb460f8f3f8f1f19df40203263cfd9c1585e))
11
+
12
+ # [1.0.0-beta.99](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.98...v1.0.0-beta.99) (2025-11-26)
13
+
14
+ ### Bug Fixes
15
+
16
+ - add check for tokens table to needsMigration functions ([ebffa66](https://github.com/sciactive/nymphjs/commit/ebffa6671d040c5064f0e47193ba14e2e115796a))
17
+ - update tokenizer and fix issue with tilmeld test ([1df81fd](https://github.com/sciactive/nymphjs/commit/1df81fdeab2c639dc669bd92c09faa220bb9a6ff))
18
+
19
+ ### Features
20
+
21
+ - add full-text-search, but this is interim and will be redesigned ([56333db](https://github.com/sciactive/nymphjs/commit/56333dbe6a25755baed4e108ba4d71b3187fe8d0))
22
+ - add live migration and token import functions ([b81037d](https://github.com/sciactive/nymphjs/commit/b81037d5d9fd0676e98760d51dcdc3e414951287))
23
+ - add sciactive tokenizer based full text search ([173c96e](https://github.com/sciactive/nymphjs/commit/173c96e02827e8ca155f55e08f33e8cdef475ab9))
24
+ - clean up old fts code, get ready for new implementation ([e8d7a6d](https://github.com/sciactive/nymphjs/commit/e8d7a6d6c6cdbb3dd74bd3e6a104e02a4caf283b))
25
+
26
+ # [1.0.0-beta.98](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.97...v1.0.0-beta.98) (2025-10-24)
27
+
28
+ ### Features
29
+
30
+ - add new indexes for better access control performance ([f76b001](https://github.com/sciactive/nymphjs/commit/f76b001c07aea38f21cb5a3373ad5a9eaadbb242))
31
+
32
+ # [1.0.0-beta.97](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.96...v1.0.0-beta.97) (2025-10-04)
33
+
34
+ **Note:** Version bump only for package @nymphjs/driver-postgresql
35
+
36
+ # [1.0.0-beta.96](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.95...v1.0.0-beta.96) (2025-09-01)
37
+
38
+ **Note:** Version bump only for package @nymphjs/driver-postgresql
39
+
40
+ # [1.0.0-beta.95](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.94...v1.0.0-beta.95) (2025-08-30)
41
+
42
+ **Note:** Version bump only for package @nymphjs/driver-postgresql
43
+
44
+ # [1.0.0-beta.94](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.93...v1.0.0-beta.94) (2025-08-25)
45
+
46
+ **Note:** Version bump only for package @nymphjs/driver-postgresql
47
+
48
+ # [1.0.0-beta.93](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.92...v1.0.0-beta.93) (2025-08-16)
49
+
50
+ **Note:** Version bump only for package @nymphjs/driver-postgresql
51
+
52
+ # [1.0.0-beta.92](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.91...v1.0.0-beta.92) (2025-04-06)
53
+
54
+ ### Features
55
+
56
+ - add 'object' return type which returns plain entity data objects ([26a4cd3](https://github.com/sciactive/nymphjs/commit/26a4cd3226145408dc34bff52b1eafe3b046313b))
57
+
58
+ # [1.0.0-beta.91](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.90...v1.0.0-beta.91) (2025-03-07)
59
+
60
+ **Note:** Version bump only for package @nymphjs/driver-postgresql
61
+
62
+ # [1.0.0-beta.90](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.89...v1.0.0-beta.90) (2025-02-09)
63
+
64
+ **Note:** Version bump only for package @nymphjs/driver-postgresql
65
+
66
+ # [1.0.0-beta.89](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.88...v1.0.0-beta.89) (2025-02-09)
67
+
68
+ **Note:** Version bump only for package @nymphjs/driver-postgresql
69
+
70
+ # [1.0.0-beta.88](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.87...v1.0.0-beta.88) (2025-01-30)
71
+
72
+ **Note:** Version bump only for package @nymphjs/driver-postgresql
73
+
74
+ # [1.0.0-beta.87](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.86...v1.0.0-beta.87) (2025-01-20)
75
+
76
+ **Note:** Version bump only for package @nymphjs/driver-postgresql
77
+
78
+ # [1.0.0-beta.86](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.85...v1.0.0-beta.86) (2024-12-28)
79
+
80
+ **Note:** Version bump only for package @nymphjs/driver-postgresql
81
+
82
+ # [1.0.0-beta.85](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.84...v1.0.0-beta.85) (2024-12-27)
83
+
84
+ ### Bug Fixes
85
+
86
+ - inTransaction could incorrectly report transaction state ([a7e2ca5](https://github.com/sciactive/nymphjs/commit/a7e2ca57f5b19e9b5b2a04dcc8b79e3937db20e5))
87
+
88
+ # [1.0.0-beta.84](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.83...v1.0.0-beta.84) (2024-12-21)
89
+
90
+ **Note:** Version bump only for package @nymphjs/driver-postgresql
91
+
92
+ # [1.0.0-beta.83](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.82...v1.0.0-beta.83) (2024-12-20)
93
+
94
+ **Note:** Version bump only for package @nymphjs/driver-postgresql
95
+
96
+ # [1.0.0-beta.82](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.81...v1.0.0-beta.82) (2024-12-15)
97
+
98
+ ### Bug Fixes
99
+
100
+ - use async generator for data export in postgres to solve out of memory issue ([25abf2a](https://github.com/sciactive/nymphjs/commit/25abf2a30b401a6d5d0fe42e057176ed258e4e29))
101
+
102
+ ### Features
103
+
104
+ - migrate to es modules, upgrade all packages, migrate to Svelte 5 ([3f2b9e5](https://github.com/sciactive/nymphjs/commit/3f2b9e517b39934eddce66601d7fc747fbf3f9e6))
105
+
106
+ # [1.0.0-beta.81](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.80...v1.0.0-beta.81) (2024-09-28)
107
+
108
+ **Note:** Version bump only for package @nymphjs/driver-postgresql
109
+
110
+ # [1.0.0-beta.80](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.79...v1.0.0-beta.80) (2024-09-28)
111
+
112
+ **Note:** Version bump only for package @nymphjs/driver-postgresql
113
+
114
+ # [1.0.0-beta.79](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.78...v1.0.0-beta.79) (2024-09-28)
115
+
116
+ **Note:** Version bump only for package @nymphjs/driver-postgresql
117
+
118
+ # [1.0.0-beta.78](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.77...v1.0.0-beta.78) (2024-09-27)
119
+
120
+ ### Bug Fixes
121
+
122
+ - don't use transactions for import, to avoid issues when creating tables ([2f8f715](https://github.com/sciactive/nymphjs/commit/2f8f71545de6ca2f3235a9f3a3c91107f58129bf))
123
+ - potential bug with nulls in postgres ([1d8bc50](https://github.com/sciactive/nymphjs/commit/1d8bc500d752b1ef59d6591f3045bf4976eb7c00))
124
+
125
+ ### Features
126
+
127
+ - add method to detect if migration is needed ([274f7c3](https://github.com/sciactive/nymphjs/commit/274f7c39aa4e0d251a38c01593775e1270fc9621))
128
+ - move comparison fields to data table and remove comparison table ([3d7fe7e](https://github.com/sciactive/nymphjs/commit/3d7fe7e614327ecf8903ee7143e559549793e8fc))
129
+
130
+ ### BREAKING CHANGES
131
+
132
+ - This is a breaking change, and requires export and
133
+ import of the database.
134
+
135
+ # [1.0.0-beta.77](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.76...v1.0.0-beta.77) (2024-09-26)
136
+
137
+ ### Bug Fixes
138
+
139
+ - broken queries where param wasn't preceded by at sign ([de183bf](https://github.com/sciactive/nymphjs/commit/de183bf1ab440ee34a7b27b51c42867e9c035bc4))
140
+
141
+ # [1.0.0-beta.76](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.75...v1.0.0-beta.76) (2024-09-25)
142
+
143
+ ### Features
144
+
145
+ - add info level logging and log queries at this level ([afad941](https://github.com/sciactive/nymphjs/commit/afad941f46c4e594f0981de6443e4dd0b9ffdf4c))
146
+ - add json column to postgres and store json values there ([b9ccfd8](https://github.com/sciactive/nymphjs/commit/b9ccfd8d4877870d2662c60423e916ddf46244b2))
147
+
148
+ ### BREAKING CHANGES
149
+
150
+ - This is a breaking change, and requires export and
151
+ import of the database if you are using the Postgres driver.
152
+
153
+ # [1.0.0-beta.75](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.74...v1.0.0-beta.75) (2024-09-24)
154
+
155
+ ### Bug Fixes
156
+
157
+ - shrink btree index and use trigram index in postgres to support very long strings ([7f7bc78](https://github.com/sciactive/nymphjs/commit/7f7bc783f1daf04f443ae12dc2139d45a5570cb9))
158
+
159
+ # [1.0.0-beta.74](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.73...v1.0.0-beta.74) (2024-09-21)
160
+
161
+ ### Bug Fixes
162
+
163
+ - make sure tags don't contain empty strings when pulled from the db ([b67382f](https://github.com/sciactive/nymphjs/commit/b67382f3e23e616696373366d25148b8f2b93a47))
164
+
165
+ # [1.0.0-beta.73](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.72...v1.0.0-beta.73) (2024-09-20)
166
+
167
+ **Note:** Version bump only for package @nymphjs/driver-postgresql
168
+
169
+ # [1.0.0-beta.72](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.71...v1.0.0-beta.72) (2024-09-20)
170
+
171
+ ### Bug Fixes
172
+
173
+ - optimize qref queries the same way ([6fcd92f](https://github.com/sciactive/nymphjs/commit/6fcd92f3289b2762fdf4549a88e80e4918cf8e19))
174
+ - postgres count queries with limit or offset ([edd586e](https://github.com/sciactive/nymphjs/commit/edd586e3e8c7f80093a258a9c328b7a298c555d7))
175
+
176
+ # [1.0.0-beta.71](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.70...v1.0.0-beta.71) (2024-09-20)
177
+
178
+ **Note:** Version bump only for package @nymphjs/driver-postgresql
179
+
180
+ # [1.0.0-beta.70](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.69...v1.0.0-beta.70) (2024-09-20)
181
+
182
+ ### Bug Fixes
183
+
184
+ - optimize postgres queries ([764c95c](https://github.com/sciactive/nymphjs/commit/764c95c626290204b162245892e93c14bffd46a6))
185
+
186
+ # [1.0.0-beta.69](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.68...v1.0.0-beta.69) (2024-09-19)
187
+
188
+ ### Bug Fixes
189
+
190
+ - create postgres tables outside of transaction ([d95e320](https://github.com/sciactive/nymphjs/commit/d95e32025432540fea3523d8a6c6081122d5fc14))
191
+
192
+ # [1.0.0-beta.68](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.67...v1.0.0-beta.68) (2024-09-19)
193
+
194
+ ### Features
195
+
196
+ - add more indexes for postgres and sqlite ([704993e](https://github.com/sciactive/nymphjs/commit/704993ef10f049a886c36de15827736ef5d54c78))
197
+
198
+ # [1.0.0-beta.67](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.66...v1.0.0-beta.67) (2024-09-03)
199
+
200
+ **Note:** Version bump only for package @nymphjs/driver-postgresql
201
+
202
+ # [1.0.0-beta.66](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.65...v1.0.0-beta.66) (2024-08-06)
203
+
204
+ **Note:** Version bump only for package @nymphjs/driver-postgresql
205
+
206
+ # [1.0.0-beta.65](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.64...v1.0.0-beta.65) (2024-08-05)
207
+
208
+ **Note:** Version bump only for package @nymphjs/driver-postgresql
209
+
210
+ # [1.0.0-beta.64](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.63...v1.0.0-beta.64) (2024-08-04)
211
+
212
+ **Note:** Version bump only for package @nymphjs/driver-postgresql
213
+
214
+ # [1.0.0-beta.63](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.62...v1.0.0-beta.63) (2024-06-18)
215
+
216
+ ### Bug Fixes
217
+
218
+ - undo ts compilation to module change ([84be6d4](https://github.com/sciactive/nymphjs/commit/84be6d434be29f8afd53907d15be2eb77d1736ce))
219
+
220
+ ### Features
221
+
222
+ - allow importing from text and iterables ([9d766bd](https://github.com/sciactive/nymphjs/commit/9d766bdad4b0f17bc2dd68b0336a0064857eb4e9))
223
+ - export data iterator ([b86aa19](https://github.com/sciactive/nymphjs/commit/b86aa19fc77d744b5a683046dfb697fc4746df5c))
224
+
225
+ # [1.0.0-beta.62](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.61...v1.0.0-beta.62) (2024-06-15)
226
+
227
+ **Note:** Version bump only for package @nymphjs/driver-postgresql
228
+
229
+ # [1.0.0-beta.61](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.60...v1.0.0-beta.61) (2024-06-14)
230
+
231
+ **Note:** Version bump only for package @nymphjs/driver-postgresql
232
+
233
+ # [1.0.0-beta.60](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.59...v1.0.0-beta.60) (2024-06-14)
234
+
235
+ **Note:** Version bump only for package @nymphjs/driver-postgresql
236
+
237
+ # [1.0.0-beta.59](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.58...v1.0.0-beta.59) (2024-06-14)
238
+
239
+ ### Features
240
+
241
+ - add uniqueness constraint feature, refactor some types ([8133d32](https://github.com/sciactive/nymphjs/commit/8133d32b2c04907182dca2e9171b8217ed1b57e4))
242
+
243
+ # [1.0.0-beta.58](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.57...v1.0.0-beta.58) (2024-06-12)
244
+
245
+ **Note:** Version bump only for package @nymphjs/driver-postgresql
246
+
247
+ # [1.0.0-beta.57](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.56...v1.0.0-beta.57) (2024-06-12)
248
+
249
+ **Note:** Version bump only for package @nymphjs/driver-postgresql
250
+
251
+ # [1.0.0-beta.56](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.55...v1.0.0-beta.56) (2024-06-11)
252
+
253
+ ### Bug Fixes
254
+
255
+ - import entities without transaction ([db56609](https://github.com/sciactive/nymphjs/commit/db56609efaadc16d5d1bbc8e9b50084aa8a076b9))
256
+
257
+ ### Features
258
+
259
+ - make transaction optional during import and off by default ([08d79f8](https://github.com/sciactive/nymphjs/commit/08d79f8f803c846ac79c0c489fc754437dae082b))
260
+
261
+ # [1.0.0-beta.55](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.54...v1.0.0-beta.55) (2024-05-26)
262
+
263
+ **Note:** Version bump only for package @nymphjs/driver-postgresql
264
+
265
+ # [1.0.0-beta.54](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.53...v1.0.0-beta.54) (2024-05-26)
266
+
267
+ **Note:** Version bump only for package @nymphjs/driver-postgresql
268
+
269
+ # [1.0.0-beta.53](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.52...v1.0.0-beta.53) (2024-05-26)
270
+
271
+ ### Features
272
+
273
+ - add pragma statements config to sqlite3 driver ([b0f27e2](https://github.com/sciactive/nymphjs/commit/b0f27e24df85663ea777565e5d352775efcad858))
274
+
275
+ # [1.0.0-beta.52](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.51...v1.0.0-beta.52) (2024-05-25)
276
+
277
+ **Note:** Version bump only for package @nymphjs/driver-postgresql
278
+
279
+ # [1.0.0-beta.51](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.50...v1.0.0-beta.51) (2024-04-12)
280
+
281
+ **Note:** Version bump only for package @nymphjs/driver-postgresql
282
+
283
+ # [1.0.0-beta.50](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.49...v1.0.0-beta.50) (2024-04-08)
284
+
285
+ **Note:** Version bump only for package @nymphjs/driver-postgresql
286
+
287
+ # [1.0.0-beta.49](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.48...v1.0.0-beta.49) (2024-03-04)
288
+
289
+ **Note:** Version bump only for package @nymphjs/driver-postgresql
290
+
291
+ # [1.0.0-beta.48](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.47...v1.0.0-beta.48) (2023-11-10)
292
+
293
+ ### Bug Fixes
294
+
295
+ - avoid trying to roll back a transaction twice ([e26ef31](https://github.com/sciactive/nymphjs/commit/e26ef312b617edcc715c81e7f92875dfaa7a904a))
296
+
297
+ # [1.0.0-beta.47](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.46...v1.0.0-beta.47) (2023-11-10)
298
+
299
+ ### Bug Fixes
300
+
301
+ - nymph stays in a new transaction on the parent instance ([1857046](https://github.com/sciactive/nymphjs/commit/185704666715162d8482326eaba7c2532297432c))
302
+
303
+ # [1.0.0-beta.46](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.45...v1.0.0-beta.46) (2023-08-29)
304
+
305
+ **Note:** Version bump only for package @nymphjs/driver-postgresql
306
+
307
+ # [1.0.0-beta.45](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.44...v1.0.0-beta.45) (2023-07-17)
308
+
309
+ **Note:** Version bump only for package @nymphjs/driver-postgresql
310
+
311
+ # [1.0.0-beta.44](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.43...v1.0.0-beta.44) (2023-07-13)
312
+
313
+ **Note:** Version bump only for package @nymphjs/driver-postgresql
314
+
315
+ # [1.0.0-beta.43](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.42...v1.0.0-beta.43) (2023-07-12)
316
+
317
+ **Note:** Version bump only for package @nymphjs/driver-postgresql
318
+
319
+ # [1.0.0-beta.42](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.41...v1.0.0-beta.42) (2023-07-12)
320
+
321
+ **Note:** Version bump only for package @nymphjs/driver-postgresql
322
+
323
+ # [1.0.0-beta.41](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.40...v1.0.0-beta.41) (2023-07-12)
324
+
325
+ ### Features
326
+
327
+ - remove synchronous database queries ([b579fb2](https://github.com/sciactive/nymphjs/commit/b579fb2eacd96cdd1b386a62c5c00cdbb2438f6e))
328
+
329
+ # [1.0.0-beta.40](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.39...v1.0.0-beta.40) (2023-07-10)
330
+
331
+ **Note:** Version bump only for package @nymphjs/driver-postgresql
332
+
333
+ # [1.0.0-beta.39](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.38...v1.0.0-beta.39) (2023-07-09)
334
+
335
+ **Note:** Version bump only for package @nymphjs/driver-postgresql
336
+
337
+ # [1.0.0-beta.38](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.37...v1.0.0-beta.38) (2023-07-09)
338
+
339
+ **Note:** Version bump only for package @nymphjs/driver-postgresql
340
+
341
+ # [1.0.0-beta.37](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.36...v1.0.0-beta.37) (2023-07-09)
342
+
343
+ **Note:** Version bump only for package @nymphjs/driver-postgresql
344
+
345
+ # [1.0.0-beta.36](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.35...v1.0.0-beta.36) (2023-07-09)
346
+
347
+ **Note:** Version bump only for package @nymphjs/driver-postgresql
348
+
349
+ # [1.0.0-beta.35](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.34...v1.0.0-beta.35) (2023-06-14)
350
+
351
+ **Note:** Version bump only for package @nymphjs/driver-postgresql
352
+
353
+ # [1.0.0-beta.34](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.33...v1.0.0-beta.34) (2023-05-13)
354
+
355
+ **Note:** Version bump only for package @nymphjs/driver-postgresql
356
+
357
+ # [1.0.0-beta.33](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.32...v1.0.0-beta.33) (2023-05-13)
358
+
359
+ **Note:** Version bump only for package @nymphjs/driver-postgresql
360
+
361
+ # [1.0.0-beta.32](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.31...v1.0.0-beta.32) (2023-05-13)
362
+
363
+ **Note:** Version bump only for package @nymphjs/driver-postgresql
364
+
365
+ # [1.0.0-beta.31](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.30...v1.0.0-beta.31) (2023-05-12)
366
+
367
+ **Note:** Version bump only for package @nymphjs/driver-postgresql
368
+
369
+ # [1.0.0-beta.30](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.29...v1.0.0-beta.30) (2023-05-12)
370
+
371
+ **Note:** Version bump only for package @nymphjs/driver-postgresql
372
+
373
+ # [1.0.0-beta.29](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.28...v1.0.0-beta.29) (2023-05-08)
374
+
375
+ **Note:** Version bump only for package @nymphjs/driver-postgresql
376
+
377
+ # [1.0.0-beta.28](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.27...v1.0.0-beta.28) (2023-05-05)
378
+
379
+ **Note:** Version bump only for package @nymphjs/driver-postgresql
380
+
381
+ # [1.0.0-beta.27](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.26...v1.0.0-beta.27) (2023-05-04)
382
+
383
+ **Note:** Version bump only for package @nymphjs/driver-postgresql
384
+
385
+ # [1.0.0-beta.26](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.25...v1.0.0-beta.26) (2023-05-04)
386
+
387
+ **Note:** Version bump only for package @nymphjs/driver-postgresql
388
+
389
+ # [1.0.0-beta.25](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.24...v1.0.0-beta.25) (2023-05-04)
390
+
391
+ ### Bug Fixes
392
+
393
+ - don't create empty entities ([1d4d2e9](https://github.com/sciactive/nymphjs/commit/1d4d2e99af2e9cdc647bcf58ac34572836f41176))
394
+
395
+ # [1.0.0-beta.24](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.23...v1.0.0-beta.24) (2023-05-02)
396
+
397
+ **Note:** Version bump only for package @nymphjs/driver-postgresql
398
+
399
+ # [1.0.0-beta.23](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.22...v1.0.0-beta.23) (2023-05-02)
400
+
401
+ **Note:** Version bump only for package @nymphjs/driver-postgresql
402
+
403
+ # [1.0.0-beta.22](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.21...v1.0.0-beta.22) (2023-05-01)
404
+
405
+ **Note:** Version bump only for package @nymphjs/driver-postgresql
406
+
407
+ # [1.0.0-beta.21](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.20...v1.0.0-beta.21) (2023-05-01)
408
+
409
+ **Note:** Version bump only for package @nymphjs/driver-postgresql
410
+
411
+ # [1.0.0-beta.20](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.19...v1.0.0-beta.20) (2023-04-30)
412
+
413
+ **Note:** Version bump only for package @nymphjs/driver-postgresql
414
+
415
+ # [1.0.0-beta.19](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.18...v1.0.0-beta.19) (2023-04-29)
416
+
417
+ **Note:** Version bump only for package @nymphjs/driver-postgresql
418
+
419
+ # [1.0.0-beta.18](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.17...v1.0.0-beta.18) (2023-04-27)
420
+
421
+ **Note:** Version bump only for package @nymphjs/driver-postgresql
422
+
423
+ # [1.0.0-beta.17](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.16...v1.0.0-beta.17) (2023-04-24)
424
+
425
+ ### Features
426
+
427
+ - use a long lived worker thread for synchronous mysql and postgres queries ([7e2bf84](https://github.com/sciactive/nymphjs/commit/7e2bf84a2d584d6906c31f44147025b793a05026))
428
+
429
+ # [1.0.0-beta.16](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.15...v1.0.0-beta.16) (2023-03-31)
430
+
431
+ **Note:** Version bump only for package @nymphjs/driver-postgresql
432
+
433
+ # [1.0.0-beta.15](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.14...v1.0.0-beta.15) (2023-03-23)
434
+
435
+ ### Features
436
+
437
+ - add option to sort results by a property ([16384e7](https://github.com/sciactive/nymphjs/commit/16384e7bdab88abb55ccccabb06ac09f92fa8a03))
438
+
439
+ # [1.0.0-beta.14](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.13...v1.0.0-beta.14) (2023-03-17)
440
+
441
+ **Note:** Version bump only for package @nymphjs/driver-postgresql
442
+
443
+ # [1.0.0-beta.13](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.12...v1.0.0-beta.13) (2023-03-16)
444
+
445
+ **Note:** Version bump only for package @nymphjs/driver-postgresql
446
+
447
+ # [1.0.0-beta.12](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.11...v1.0.0-beta.12) (2023-03-04)
448
+
449
+ **Note:** Version bump only for package @nymphjs/driver-postgresql
450
+
451
+ # [1.0.0-beta.11](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.10...v1.0.0-beta.11) (2023-02-27)
452
+
453
+ **Note:** Version bump only for package @nymphjs/driver-postgresql
454
+
6
455
  # [1.0.0-beta.10](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.9...v1.0.0-beta.10) (2023-01-19)
7
456
 
8
457
  **Note:** Version bump only for package @nymphjs/driver-postgresql
package/README.md CHANGED
@@ -36,7 +36,7 @@ See the [config declaration file](src/conf/d.ts).
36
36
 
37
37
  # License
38
38
 
39
- Copyright 2021 SciActive Inc
39
+ Copyright 2021-2025 SciActive Inc
40
40
 
41
41
  Licensed under the Apache License, Version 2.0 (the "License");
42
42
  you may not use this file except in compliance with the License.
@@ -1,6 +1,6 @@
1
- import { Pool, PoolClient } from 'pg';
2
- import { NymphDriver, EntityConstructor, EntityInterface, FormattedSelector, Options, Selector } from '@nymphjs/nymph';
3
- import { PostgreSQLDriverConfig } from './conf';
1
+ import type { Pool, PoolClient } from 'pg';
2
+ import { NymphDriver, type EntityConstructor, type EntityObjectType, type EntityInterface, type EntityInstanceType, type SerializedEntityData, type FormattedSelector, type Options, type Selector } from '@nymphjs/nymph';
3
+ import { PostgreSQLDriverConfig } from './conf/index.js';
4
4
  type PostgreSQLDriverConnection = {
5
5
  client: PoolClient;
6
6
  done: () => void;
@@ -9,6 +9,9 @@ type PostgreSQLDriverTransaction = {
9
9
  connection: PostgreSQLDriverConnection | null;
10
10
  count: number;
11
11
  };
12
+ /**
13
+ * The PostgreSQL Nymph database driver.
14
+ */
12
15
  export default class PostgreSQLDriver extends NymphDriver {
13
16
  config: PostgreSQLDriverConfig;
14
17
  private postgresqlConfig;
@@ -18,55 +21,117 @@ export default class PostgreSQLDriver extends NymphDriver {
18
21
  protected transaction: PostgreSQLDriverTransaction | null;
19
22
  static escape(input: string): string;
20
23
  static escapeValue(input: string): string;
24
+ static escapeNullSequences(input: string): string;
25
+ static unescapeNullSequences(input: string): string;
26
+ static escapeNulls(input: string): string;
27
+ static unescapeNulls(input: string): string;
21
28
  constructor(config: Partial<PostgreSQLDriverConfig>, link?: Pool, transaction?: PostgreSQLDriverTransaction);
29
+ /**
30
+ * This is used internally by Nymph. Don't call it yourself.
31
+ *
32
+ * @returns A clone of this instance.
33
+ */
22
34
  clone(): PostgreSQLDriver;
23
35
  private getConnection;
36
+ /**
37
+ * Connect to the PostgreSQL database.
38
+ *
39
+ * @returns Whether this instance is connected to a PostgreSQL database.
40
+ */
24
41
  connect(): Promise<true>;
42
+ /**
43
+ * Disconnect from the PostgreSQL database.
44
+ *
45
+ * @returns Whether this instance is connected to a PostgreSQL database.
46
+ */
25
47
  disconnect(): Promise<false>;
26
48
  inTransaction(): Promise<boolean>;
49
+ /**
50
+ * Check connection status.
51
+ *
52
+ * @returns Whether this instance is connected to a PostgreSQL database.
53
+ */
27
54
  isConnected(): boolean;
55
+ private createEntitiesTable;
56
+ private createDataTable;
57
+ private createReferencesTable;
58
+ private createTokensTable;
59
+ private createUniquesTable;
60
+ /**
61
+ * Create entity tables in the database.
62
+ *
63
+ * @param etype The entity type to create a table for. If this is blank, the default tables are created.
64
+ * @returns True on success, false on failure.
65
+ */
28
66
  private createTables;
29
67
  private translateQuery;
30
68
  private query;
31
- private querySync;
69
+ private queryArray;
32
70
  private queryIter;
33
- private queryIterSync;
34
71
  private queryGet;
35
72
  private queryRun;
36
- private queryRunSync;
37
73
  commit(name: string): Promise<boolean>;
38
74
  deleteEntityByID(guid: string, className?: EntityConstructor | string | null): Promise<boolean>;
39
75
  deleteUID(name: string): Promise<boolean>;
40
- protected exportEntities(writeLine: (line: string) => void): Promise<void>;
76
+ getEtypes(): Promise<string[]>;
77
+ exportDataIterator(): AsyncGenerator<{
78
+ type: 'comment' | 'uid' | 'entity';
79
+ content: string;
80
+ }, void, false | undefined>;
81
+ /**
82
+ * Generate the PostgreSQL query.
83
+ * @param options The options array.
84
+ * @param formattedSelectors The formatted selector array.
85
+ * @param etype
86
+ * @param count Used to track internal params.
87
+ * @param params Used to store internal params.
88
+ * @param subquery Whether only a subquery should be returned.
89
+ * @returns The SQL query.
90
+ */
41
91
  private makeEntityQuery;
42
92
  protected performQuery(options: Options, formattedSelectors: FormattedSelector[], etype: string): {
43
93
  result: any;
44
94
  };
45
- protected performQuerySync(options: Options, formattedSelectors: FormattedSelector[], etype: string): {
46
- result: any;
47
- };
48
95
  getEntities<T extends EntityConstructor = EntityConstructor>(options: Options<T> & {
49
96
  return: 'count';
50
97
  }, ...selectors: Selector[]): Promise<number>;
51
98
  getEntities<T extends EntityConstructor = EntityConstructor>(options: Options<T> & {
52
99
  return: 'guid';
53
100
  }, ...selectors: Selector[]): Promise<string[]>;
54
- getEntities<T extends EntityConstructor = EntityConstructor>(options?: Options<T>, ...selectors: Selector[]): Promise<ReturnType<T['factorySync']>[]>;
55
- protected getEntitiesSync<T extends EntityConstructor = EntityConstructor>(options: Options<T> & {
56
- return: 'count';
57
- }, ...selectors: Selector[]): number;
58
- protected getEntitiesSync<T extends EntityConstructor = EntityConstructor>(options: Options<T> & {
59
- return: 'guid';
60
- }, ...selectors: Selector[]): string[];
61
- protected getEntitiesSync<T extends EntityConstructor = EntityConstructor>(options?: Options<T>, ...selectors: Selector[]): ReturnType<T['factorySync']>[];
101
+ getEntities<T extends EntityConstructor = EntityConstructor>(options: Options<T> & {
102
+ return: 'object';
103
+ }, ...selectors: Selector[]): Promise<EntityObjectType<T>[]>;
104
+ getEntities<T extends EntityConstructor = EntityConstructor>(options?: Options<T>, ...selectors: Selector[]): Promise<EntityInstanceType<T>[]>;
62
105
  getUID(name: string): Promise<number | null>;
63
- import(filename: string): Promise<boolean>;
106
+ importEntity(entity: {
107
+ guid: string;
108
+ cdate: number;
109
+ mdate: number;
110
+ tags: string[];
111
+ sdata: SerializedEntityData;
112
+ etype: string;
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;
123
+ importUID({ name, value }: {
124
+ name: string;
125
+ value: number;
126
+ }): Promise<void>;
64
127
  newUID(name: string): Promise<number>;
65
128
  renameUID(oldName: string, newName: string): Promise<boolean>;
66
129
  rollback(name: string): Promise<boolean>;
67
130
  saveEntity(entity: EntityInterface): Promise<boolean>;
68
131
  setUID(name: string, curUid: number): Promise<boolean>;
69
- private internalTransaction;
132
+ protected internalTransaction(name: string): Promise<PostgreSQLDriverTransaction>;
70
133
  startTransaction(name: string): Promise<import("@nymphjs/nymph").Nymph>;
134
+ needsMigration(): Promise<'json' | 'tokens' | false>;
135
+ liveMigration(_migrationType: 'tokenTables'): Promise<void>;
71
136
  }
72
137
  export {};