@nymphjs/driver-postgresql 1.0.0-beta.9 → 1.0.0-beta.90

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