@nymphjs/driver-sqlite3 1.0.0-beta.10 → 1.0.0-beta.101

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