@nymphjs/driver-sqlite3 1.0.0-beta.11 → 1.0.0-beta.110

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