@nymphjs/driver-sqlite3 1.0.0-beta.98 → 1.0.0-beta.99

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,20 @@
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.99](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.98...v1.0.0-beta.99) (2025-11-26)
7
+
8
+ ### Bug Fixes
9
+
10
+ - add check for tokens table to needsMigration functions ([ebffa66](https://github.com/sciactive/nymphjs/commit/ebffa6671d040c5064f0e47193ba14e2e115796a))
11
+ - update tokenizer and fix issue with tilmeld test ([1df81fd](https://github.com/sciactive/nymphjs/commit/1df81fdeab2c639dc669bd92c09faa220bb9a6ff))
12
+
13
+ ### Features
14
+
15
+ - add full-text-search, but this is interim and will be redesigned ([56333db](https://github.com/sciactive/nymphjs/commit/56333dbe6a25755baed4e108ba4d71b3187fe8d0))
16
+ - add live migration and token import functions ([b81037d](https://github.com/sciactive/nymphjs/commit/b81037d5d9fd0676e98760d51dcdc3e414951287))
17
+ - add sciactive tokenizer based full text search ([173c96e](https://github.com/sciactive/nymphjs/commit/173c96e02827e8ca155f55e08f33e8cdef475ab9))
18
+ - clean up old fts code, get ready for new implementation ([e8d7a6d](https://github.com/sciactive/nymphjs/commit/e8d7a6d6c6cdbb3dd74bd3e6a104e02a4caf283b))
19
+
6
20
  # [1.0.0-beta.98](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.97...v1.0.0-beta.98) (2025-10-24)
7
21
 
8
22
  ### Features
@@ -43,6 +43,11 @@ export default class SQLite3Driver extends NymphDriver {
43
43
  * @returns Whether this instance is connected to a SQLite3 database.
44
44
  */
45
45
  isConnected(): boolean;
46
+ private createEntitiesTable;
47
+ private createDataTable;
48
+ private createReferencesTable;
49
+ private createTokensTable;
50
+ private createUniquesTable;
46
51
  /**
47
52
  * Create entity tables in the database.
48
53
  *
@@ -56,6 +61,7 @@ export default class SQLite3Driver extends NymphDriver {
56
61
  commit(name: string): Promise<boolean>;
57
62
  deleteEntityByID(guid: string, className?: EntityConstructor | string | null): Promise<boolean>;
58
63
  deleteUID(name: string): Promise<boolean>;
64
+ getEtypes(): Promise<string[]>;
59
65
  exportDataIterator(): AsyncGenerator<{
60
66
  type: 'comment' | 'uid' | 'entity';
61
67
  content: string;
@@ -85,7 +91,7 @@ export default class SQLite3Driver extends NymphDriver {
85
91
  }, ...selectors: Selector[]): Promise<EntityObjectType<T>[]>;
86
92
  getEntities<T extends EntityConstructor = EntityConstructor>(options?: Options<T>, ...selectors: Selector[]): Promise<EntityInstanceType<T>[]>;
87
93
  getUID(name: string): Promise<number | null>;
88
- importEntity({ guid, cdate, mdate, tags, sdata, etype, }: {
94
+ importEntity(entity: {
89
95
  guid: string;
90
96
  cdate: number;
91
97
  mdate: number;
@@ -93,6 +99,15 @@ export default class SQLite3Driver extends NymphDriver {
93
99
  sdata: SerializedEntityData;
94
100
  etype: string;
95
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;
96
111
  importUID({ name, value }: {
97
112
  name: string;
98
113
  value: number;
@@ -104,6 +119,7 @@ export default class SQLite3Driver extends NymphDriver {
104
119
  setUID(name: string, curUid: number): Promise<boolean>;
105
120
  internalTransaction(name: string): Promise<void>;
106
121
  startTransaction(name: string): Promise<import("@nymphjs/nymph").Nymph>;
107
- needsMigration(): Promise<boolean>;
122
+ needsMigration(): Promise<'json' | 'tokens' | false>;
123
+ liveMigration(_migrationType: 'tokenTables'): Promise<void>;
108
124
  }
109
125
  export {};