@dqcai/sqlite 1.0.0 → 2.0.0
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/README.md +434 -2522
- package/lib/adapters/base-adapter.d.ts.map +1 -1
- package/lib/adapters/index.d.ts +2 -0
- package/lib/adapters/index.d.ts.map +1 -0
- package/lib/core/base-service.d.ts +132 -0
- package/lib/core/base-service.d.ts.map +1 -0
- package/lib/core/database-factory.d.ts +98 -0
- package/lib/core/database-factory.d.ts.map +1 -0
- package/lib/core/database-manager.d.ts +208 -0
- package/lib/core/database-manager.d.ts.map +1 -0
- package/lib/core/index.d.ts +5 -0
- package/lib/core/index.d.ts.map +1 -0
- package/lib/core/universal-dao.d.ts +64 -0
- package/lib/core/universal-dao.d.ts.map +1 -0
- package/lib/index.d.ts +324 -14
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +1 -1
- package/lib/index.js.map +1 -1
- package/lib/index.mjs +45 -1
- package/lib/index.mjs.map +1 -1
- package/lib/index.umd.js +1 -1
- package/lib/index.umd.js.map +1 -1
- package/lib/query/query-builder.d.ts +120 -0
- package/lib/query/query-builder.d.ts.map +1 -0
- package/lib/types.d.ts +126 -4
- package/lib/types.d.ts.map +1 -1
- package/lib/utils/csv-import.d.ts +102 -0
- package/lib/utils/csv-import.d.ts.map +1 -0
- package/lib/utils/index.d.ts +3 -0
- package/lib/utils/index.d.ts.map +1 -0
- package/lib/utils/migration-manager.d.ts +184 -0
- package/lib/utils/migration-manager.d.ts.map +1 -0
- package/package.json +83 -63
- package/README-all-source.md +0 -1248
- package/README-ps-gemini.md +0 -1180
- package/lib/adapters/browser-adapter.d.ts +0 -17
- package/lib/adapters/browser-adapter.d.ts.map +0 -1
- package/lib/adapters/bun-adapter.d.ts +0 -7
- package/lib/adapters/bun-adapter.d.ts.map +0 -1
- package/lib/adapters/deno-adapter.d.ts +0 -7
- package/lib/adapters/deno-adapter.d.ts.map +0 -1
- package/lib/adapters/node-adapter.d.ts +0 -7
- package/lib/adapters/node-adapter.d.ts.map +0 -1
- package/lib/adapters/react-native-adapter.d.ts +0 -20
- package/lib/adapters/react-native-adapter.d.ts.map +0 -1
- package/lib/query-builder.d.ts +0 -19
- package/lib/query-builder.d.ts.map +0 -1
- package/lib/sqlite-manager.d.ts +0 -11
- package/lib/sqlite-manager.d.ts.map +0 -1
- package/scripts/obfuscate.mjs +0 -155
- package/scripts/version-manager.js +0 -317
package/lib/index.d.ts
CHANGED
|
@@ -1,18 +1,328 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import { UniversalDAO } from "./core/universal-dao";
|
|
2
|
+
import { BaseService } from "./core/base-service";
|
|
3
|
+
import { QueryBuilder } from "./query/query-builder";
|
|
4
|
+
import { MigrationManager } from "./utils/migration-manager";
|
|
5
|
+
import { CSVImporter } from "./utils/csv-import";
|
|
6
|
+
import { SQLiteAdapter, SQLiteResult, SQLiteRow, DatabaseSchema, DbFactoryOptions, ImportOptions, ImportResult, ColumnMapping } from "./types";
|
|
7
|
+
export { UniversalDAO } from "./core/universal-dao";
|
|
8
|
+
export { DatabaseFactory } from "./core/database-factory";
|
|
9
|
+
export { DatabaseManager } from "./core/database-manager";
|
|
10
|
+
export { BaseService } from "./core/base-service";
|
|
11
|
+
export { QueryBuilder } from "./query/query-builder";
|
|
12
|
+
export { MigrationManager, type Migration } from "./utils/migration-manager";
|
|
13
|
+
export { CSVImporter } from "./utils/csv-import";
|
|
14
|
+
export { BaseAdapter } from "./adapters/base-adapter";
|
|
15
|
+
export * from "./types";
|
|
16
|
+
/**
|
|
17
|
+
* UniversalSQLite - The main unified interface providing a comprehensive
|
|
18
|
+
* SQLite database management solution for all environments and platforms.
|
|
19
|
+
*
|
|
20
|
+
* Features:
|
|
21
|
+
* - Cross-platform support (Browser, Node.js, Deno, Bun, React Native)
|
|
22
|
+
* - Schema-based database management
|
|
23
|
+
* - Role-based access control
|
|
24
|
+
* - Advanced query building
|
|
25
|
+
* - Data import/export capabilities
|
|
26
|
+
* - Migration system
|
|
27
|
+
* - Transaction management
|
|
28
|
+
* - Connection pooling and lifecycle management
|
|
29
|
+
*/
|
|
30
|
+
export declare class UniversalSQLite {
|
|
31
|
+
private static instance;
|
|
32
|
+
private currentSchema;
|
|
33
|
+
private isInitialized;
|
|
34
|
+
private initializationPromise;
|
|
35
|
+
private eventListeners;
|
|
7
36
|
constructor();
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
37
|
+
/**
|
|
38
|
+
* Get singleton instance of UniversalSQLite
|
|
39
|
+
*/
|
|
40
|
+
static getInstance(): UniversalSQLite;
|
|
41
|
+
/**
|
|
42
|
+
* Reset singleton instance (useful for testing)
|
|
43
|
+
*/
|
|
44
|
+
static resetInstance(): void;
|
|
45
|
+
/**
|
|
46
|
+
* Initialize UniversalSQLite with schema configurations
|
|
47
|
+
* @param schemas - Database schema configurations
|
|
48
|
+
* @param options - Additional initialization options
|
|
49
|
+
*/
|
|
50
|
+
initialize(schemas: Record<string, DatabaseSchema>, options?: {
|
|
51
|
+
registerAdapters?: SQLiteAdapter[];
|
|
52
|
+
autoConnectCore?: boolean;
|
|
53
|
+
defaultRoles?: string[];
|
|
54
|
+
globalErrorHandler?: (error: Error, context: string) => void;
|
|
55
|
+
}): Promise<void>;
|
|
56
|
+
private _performInitialization;
|
|
57
|
+
/**
|
|
58
|
+
* Initialize from a single schema configuration
|
|
59
|
+
*/
|
|
60
|
+
initializeFromSchema(schema: DatabaseSchema, options?: {
|
|
61
|
+
registerAdapters?: SQLiteAdapter[];
|
|
62
|
+
autoConnect?: boolean;
|
|
63
|
+
globalErrorHandler?: (error: Error, context: string) => void;
|
|
64
|
+
}): Promise<void>;
|
|
65
|
+
/**
|
|
66
|
+
* Connect to a specific database schema
|
|
67
|
+
* @param schemaName - Name of the schema to connect to
|
|
68
|
+
* @returns Promise resolving to UniversalDAO instance
|
|
69
|
+
*/
|
|
70
|
+
connect(schemaName: string): Promise<UniversalDAO>;
|
|
71
|
+
/**
|
|
72
|
+
* Get DAO for a specific schema
|
|
73
|
+
* @param schemaName - Optional schema name (uses current if not provided)
|
|
74
|
+
*/
|
|
75
|
+
getDAO(schemaName?: string): UniversalDAO;
|
|
76
|
+
/**
|
|
77
|
+
* Get current connected DAO
|
|
78
|
+
*/
|
|
79
|
+
getCurrentDAO(): UniversalDAO;
|
|
80
|
+
/**
|
|
81
|
+
* Ensure database connection exists and is active
|
|
82
|
+
*/
|
|
83
|
+
ensureDatabaseConnection(schemaName: string): Promise<UniversalDAO>;
|
|
84
|
+
/**
|
|
85
|
+
* Create a service for a specific table
|
|
86
|
+
* @param tableName - Name of the table
|
|
87
|
+
* @param schemaName - Optional schema name (uses current if not provided)
|
|
88
|
+
*/
|
|
89
|
+
createService<T = any>(tableName: string, schemaName?: string): BaseService<T>;
|
|
90
|
+
/**
|
|
91
|
+
* Create multiple services at once
|
|
92
|
+
*/
|
|
93
|
+
createServices<T = any>(tableNames: string[], schemaName?: string): Record<string, BaseService<T>>;
|
|
94
|
+
/**
|
|
95
|
+
* Create query builder for current connection
|
|
96
|
+
*/
|
|
97
|
+
query(tableName?: string, schemaName?: string): QueryBuilder;
|
|
98
|
+
/**
|
|
99
|
+
* Create query builder from table
|
|
100
|
+
*/
|
|
101
|
+
table(tableName: string, schemaName?: string): QueryBuilder;
|
|
102
|
+
/**
|
|
103
|
+
* Execute raw SQL on current connection
|
|
104
|
+
*/
|
|
105
|
+
execute(sql: string, params?: any[], schemaName?: string): Promise<SQLiteResult>;
|
|
106
|
+
/**
|
|
107
|
+
* Get first row from query
|
|
108
|
+
*/
|
|
109
|
+
getRst(sql: string, params?: any[], schemaName?: string): Promise<SQLiteRow>;
|
|
110
|
+
/**
|
|
111
|
+
* Get all rows from query
|
|
112
|
+
*/
|
|
113
|
+
getRsts(sql: string, params?: any[], schemaName?: string): Promise<SQLiteRow[]>;
|
|
114
|
+
/**
|
|
115
|
+
* Initialize database from schema
|
|
116
|
+
*/
|
|
117
|
+
initializeSchema(schema: DatabaseSchema, forceRecreate?: boolean): Promise<void>;
|
|
118
|
+
/**
|
|
119
|
+
* Get schema version for a database
|
|
120
|
+
*/
|
|
121
|
+
getSchemaVersion(schemaName?: string): Promise<string>;
|
|
122
|
+
/**
|
|
123
|
+
* Get database information
|
|
124
|
+
*/
|
|
125
|
+
getDatabaseInfo(schemaName?: string): Promise<any>;
|
|
126
|
+
/**
|
|
127
|
+
* Get table information
|
|
128
|
+
*/
|
|
129
|
+
getTableInfo(tableName: string, schemaName?: string): Promise<any[]>;
|
|
130
|
+
/**
|
|
131
|
+
* Create migration manager for current connection
|
|
132
|
+
*/
|
|
133
|
+
createMigrationManager(schemaName?: string): MigrationManager;
|
|
134
|
+
/**
|
|
135
|
+
* Run migrations for a database
|
|
136
|
+
*/
|
|
137
|
+
runMigrations(migrations: Array<{
|
|
138
|
+
version: string;
|
|
139
|
+
description: string;
|
|
140
|
+
up: (dao: UniversalDAO) => Promise<void>;
|
|
141
|
+
down: (dao: UniversalDAO) => Promise<void>;
|
|
142
|
+
}>, schemaName?: string, targetVersion?: string): Promise<void>;
|
|
143
|
+
/**
|
|
144
|
+
* Create CSV importer for current connection
|
|
145
|
+
*/
|
|
146
|
+
createCSVImporter(schemaName?: string): CSVImporter;
|
|
147
|
+
/**
|
|
148
|
+
* Import data to a specific table
|
|
149
|
+
*/
|
|
150
|
+
importData(schemaName: string, tableName: string, data: Record<string, any>[], options?: Partial<ImportOptions>): Promise<ImportResult>;
|
|
151
|
+
/**
|
|
152
|
+
* Import data with column mapping
|
|
153
|
+
*/
|
|
154
|
+
importDataWithMapping(schemaName: string, tableName: string, data: Record<string, any>[], columnMappings: ColumnMapping[], options?: Partial<ImportOptions>): Promise<ImportResult>;
|
|
155
|
+
/**
|
|
156
|
+
* Import from CSV
|
|
157
|
+
*/
|
|
158
|
+
importFromCSV(schemaName: string, tableName: string, csvData: string, options?: {
|
|
159
|
+
delimiter?: string;
|
|
160
|
+
hasHeader?: boolean;
|
|
161
|
+
columnMappings?: ColumnMapping[];
|
|
162
|
+
} & Partial<ImportOptions>): Promise<ImportResult>;
|
|
163
|
+
/**
|
|
164
|
+
* Export table data to CSV
|
|
165
|
+
*/
|
|
166
|
+
exportToCSV(tableName: string, schemaName?: string, options?: {
|
|
167
|
+
columns?: string[];
|
|
168
|
+
where?: string;
|
|
169
|
+
orderBy?: string;
|
|
170
|
+
limit?: number;
|
|
171
|
+
delimiter?: string;
|
|
172
|
+
includeHeaders?: boolean;
|
|
173
|
+
}): Promise<string>;
|
|
174
|
+
/**
|
|
175
|
+
* Set user roles and initialize role-based connections
|
|
176
|
+
*/
|
|
177
|
+
setUserRoles(roles: string[], primaryRole?: string): Promise<void>;
|
|
178
|
+
/**
|
|
179
|
+
* Get current user roles
|
|
180
|
+
*/
|
|
181
|
+
getCurrentUserRoles(): string[];
|
|
182
|
+
/**
|
|
183
|
+
* Get current primary role
|
|
184
|
+
*/
|
|
185
|
+
getCurrentRole(): string | null;
|
|
186
|
+
/**
|
|
187
|
+
* Check if user has access to database
|
|
188
|
+
*/
|
|
189
|
+
hasAccessToDatabase(dbKey: string): boolean;
|
|
190
|
+
/**
|
|
191
|
+
* Execute cross-schema transaction
|
|
192
|
+
*/
|
|
193
|
+
executeTransaction(schemas: string[], callback: (daos: Record<string, UniversalDAO>) => Promise<void>): Promise<void>;
|
|
194
|
+
/**
|
|
195
|
+
* Execute transaction on current connection
|
|
196
|
+
*/
|
|
197
|
+
executeTransactionOnCurrent<T>(callback: (dao: UniversalDAO) => Promise<T>): Promise<T>;
|
|
198
|
+
/**
|
|
199
|
+
* Get environment information
|
|
200
|
+
*/
|
|
11
201
|
getEnvironment(): string;
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
202
|
+
/**
|
|
203
|
+
* Get connection status
|
|
204
|
+
*/
|
|
205
|
+
getConnectionStatus(): {
|
|
206
|
+
isInitialized: boolean;
|
|
207
|
+
currentSchema: string | null;
|
|
208
|
+
activeConnections: string[];
|
|
209
|
+
connectionCount: number;
|
|
210
|
+
userRoles: string[];
|
|
211
|
+
primaryRole: string | null;
|
|
212
|
+
};
|
|
213
|
+
/**
|
|
214
|
+
* Get list of available schemas
|
|
215
|
+
*/
|
|
216
|
+
getAvailableSchemas(): string[];
|
|
217
|
+
/**
|
|
218
|
+
* Health check for all connections
|
|
219
|
+
*/
|
|
220
|
+
healthCheck(): Promise<Record<string, {
|
|
221
|
+
healthy: boolean;
|
|
222
|
+
error?: string;
|
|
223
|
+
}>>;
|
|
224
|
+
/**
|
|
225
|
+
* Add event listener
|
|
226
|
+
*/
|
|
227
|
+
on(event: string, handler: (...args: any[]) => void): this;
|
|
228
|
+
/**
|
|
229
|
+
* Remove event listener
|
|
230
|
+
*/
|
|
231
|
+
off(event: string, handler: (...args: any[]) => void): this;
|
|
232
|
+
/**
|
|
233
|
+
* Emit event
|
|
234
|
+
*/
|
|
235
|
+
private _emit;
|
|
236
|
+
/**
|
|
237
|
+
* Close specific connection
|
|
238
|
+
*/
|
|
239
|
+
closeConnection(schemaName: string): Promise<void>;
|
|
240
|
+
/**
|
|
241
|
+
* Close all connections
|
|
242
|
+
*/
|
|
243
|
+
closeAll(): Promise<void>;
|
|
244
|
+
/**
|
|
245
|
+
* Logout user and close role-specific connections
|
|
246
|
+
*/
|
|
247
|
+
logout(): Promise<void>;
|
|
248
|
+
/**
|
|
249
|
+
* Register adapter with DatabaseFactory
|
|
250
|
+
*/
|
|
251
|
+
static registerAdapter(adapter: SQLiteAdapter): void;
|
|
252
|
+
/**
|
|
253
|
+
* Register role configuration
|
|
254
|
+
*/
|
|
255
|
+
static registerRole(roleConfig: {
|
|
256
|
+
roleName: string;
|
|
257
|
+
requiredDatabases: string[];
|
|
258
|
+
optionalDatabases?: string[];
|
|
259
|
+
priority?: number;
|
|
260
|
+
}): void;
|
|
261
|
+
/**
|
|
262
|
+
* Register multiple roles
|
|
263
|
+
*/
|
|
264
|
+
static registerRoles(roleConfigs: Array<{
|
|
265
|
+
roleName: string;
|
|
266
|
+
requiredDatabases: string[];
|
|
267
|
+
optionalDatabases?: string[];
|
|
268
|
+
priority?: number;
|
|
269
|
+
}>): void;
|
|
270
|
+
private ensureInitialized;
|
|
17
271
|
}
|
|
272
|
+
/**
|
|
273
|
+
* Create UniversalDAO instance
|
|
274
|
+
*/
|
|
275
|
+
export declare const createUniversalDAO: (dbPath: string, options?: {
|
|
276
|
+
adapter?: SQLiteAdapter;
|
|
277
|
+
createIfNotExists?: boolean;
|
|
278
|
+
forceRecreate?: boolean;
|
|
279
|
+
}) => UniversalDAO;
|
|
280
|
+
/**
|
|
281
|
+
* Create database from schema configuration
|
|
282
|
+
*/
|
|
283
|
+
export declare const createDatabaseFromSchema: (schema: DatabaseSchema, options?: Omit<DbFactoryOptions, "config">) => Promise<UniversalDAO>;
|
|
284
|
+
/**
|
|
285
|
+
* Open existing database
|
|
286
|
+
*/
|
|
287
|
+
export declare const openExistingDatabase: (dbName: string, options?: Omit<DbFactoryOptions, "config" | "configAsset">) => Promise<UniversalDAO>;
|
|
288
|
+
/**
|
|
289
|
+
* Create query builder
|
|
290
|
+
*/
|
|
291
|
+
export declare const createQueryBuilder: (dao?: UniversalDAO) => QueryBuilder;
|
|
292
|
+
/**
|
|
293
|
+
* Create base service
|
|
294
|
+
*/
|
|
295
|
+
export declare const createBaseService: <T = any>(schemaName: string, tableName?: string) => BaseService<T>;
|
|
296
|
+
/**
|
|
297
|
+
* Create migration manager
|
|
298
|
+
*/
|
|
299
|
+
export declare const createMigrationManager: (dao: UniversalDAO) => MigrationManager;
|
|
300
|
+
/**
|
|
301
|
+
* Create CSV importer
|
|
302
|
+
*/
|
|
303
|
+
export declare const createCSVImporter: (dao: UniversalDAO) => CSVImporter;
|
|
304
|
+
/**
|
|
305
|
+
* Quick setup function for common use cases
|
|
306
|
+
*/
|
|
307
|
+
export declare const setupUniversalSQLite: (config: {
|
|
308
|
+
schemas: Record<string, DatabaseSchema>;
|
|
309
|
+
adapters?: SQLiteAdapter[];
|
|
310
|
+
defaultRoles?: string[];
|
|
311
|
+
autoConnect?: string;
|
|
312
|
+
}) => Promise<UniversalSQLite>;
|
|
313
|
+
/**
|
|
314
|
+
* Quick database creation from single schema
|
|
315
|
+
*/
|
|
316
|
+
export declare const createSingleDatabase: (schema: DatabaseSchema, options?: {
|
|
317
|
+
adapter?: SQLiteAdapter;
|
|
318
|
+
autoConnect?: boolean;
|
|
319
|
+
}) => Promise<{
|
|
320
|
+
sqlite: UniversalSQLite;
|
|
321
|
+
dao: UniversalDAO;
|
|
322
|
+
}>;
|
|
323
|
+
/**
|
|
324
|
+
* Default export is the singleton instance
|
|
325
|
+
*/
|
|
326
|
+
declare const defaultInstance: UniversalSQLite;
|
|
327
|
+
export default defaultInstance;
|
|
18
328
|
//# sourceMappingURL=index.d.ts.map
|
package/lib/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACpD,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAElD,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AACrD,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAC7D,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,EACL,aAAa,EACb,YAAY,EACZ,SAAS,EACT,cAAc,EACd,gBAAgB,EAChB,aAAa,EACb,YAAY,EACZ,aAAa,EAUd,MAAM,SAAS,CAAC;AAGjB,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACpD,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;A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