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

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