@dqcai/sqlite 3.0.5 → 3.1.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 +208 -34
- package/lib/index.d.ts +1 -1
- 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 +10 -10
- package/lib/index.mjs.map +1 -1
- package/lib/index.umd.js +1 -1
- package/lib/index.umd.js.map +1 -1
- package/lib/logger/logger-config.d.ts +27 -79
- package/lib/logger/logger-config.d.ts.map +1 -1
- package/package.json +2 -2
|
@@ -1,81 +1,29 @@
|
|
|
1
|
-
import { BaseModule,
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
constructor(moduleName: string);
|
|
28
|
-
trace(message: string, ...args: any[]): void;
|
|
29
|
-
debug(message: string, ...args: any[]): void;
|
|
30
|
-
info(message: string, ...args: any[]): void;
|
|
31
|
-
warn(message: string, ...args: any[]): void;
|
|
32
|
-
error(message: string, ...args: any[]): void;
|
|
33
|
-
}
|
|
34
|
-
/**
|
|
35
|
-
* Enhanced SQLite Logger Configuration with automatic update support
|
|
36
|
-
*/
|
|
37
|
-
export declare class SQLiteLoggerConfig {
|
|
38
|
-
private static instance;
|
|
39
|
-
private static currentConfig;
|
|
40
|
-
static proxyInstances: Map<string, LoggerProxy>;
|
|
41
|
-
static createDefaultConfig(): import("@dqcai/logger").LoggerConfig;
|
|
42
|
-
static initialize(customConfig?: any): UniversalLogger;
|
|
43
|
-
static getInstance(): UniversalLogger;
|
|
44
|
-
/**
|
|
45
|
-
* Update configuration - proxy pattern automatically handles updates
|
|
46
|
-
*/
|
|
47
|
-
static updateConfiguration(newConfig: any): void;
|
|
48
|
-
static setEnabled(enabled: boolean): void;
|
|
49
|
-
static enableModule(moduleName: string, levels?: string[], appenders?: string[]): void;
|
|
50
|
-
static disableModule(moduleName: string): void;
|
|
51
|
-
static createDebugConfig(): import("@dqcai/logger").LoggerConfig;
|
|
52
|
-
static createProductionConfig(): import("@dqcai/logger").LoggerConfig;
|
|
53
|
-
static reset(): UniversalLogger;
|
|
54
|
-
/**
|
|
55
|
-
* Get active proxy modules
|
|
56
|
-
*/
|
|
57
|
-
static getActiveProxyModules(): string[];
|
|
58
|
-
/**
|
|
59
|
-
* Get current configuration (for debugging)
|
|
60
|
-
*/
|
|
61
|
-
static getCurrentConfig(): any;
|
|
62
|
-
}
|
|
63
|
-
export declare const sqliteLogger: UniversalLogger;
|
|
64
|
-
/**
|
|
65
|
-
* Create module logger using proxy pattern - automatically updates when configuration changes
|
|
66
|
-
*/
|
|
67
|
-
export declare const createModuleLogger: (moduleName: string) => ModuleLogger;
|
|
68
|
-
/**
|
|
69
|
-
* Utility functions for testing and debugging
|
|
70
|
-
*/
|
|
71
|
-
export declare const LoggerUtils: {
|
|
72
|
-
/**
|
|
73
|
-
* Test if a module logger responds to configuration changes
|
|
74
|
-
*/
|
|
75
|
-
testDynamicUpdate: (moduleName: string) => void;
|
|
76
|
-
/**
|
|
77
|
-
* Show current logger statistics
|
|
78
|
-
*/
|
|
79
|
-
showStats: () => void;
|
|
1
|
+
import { BaseModule, CommonLoggerConfig, createModuleLogger } from "@dqcai/logger";
|
|
2
|
+
declare const SQLiteModules: {
|
|
3
|
+
DATABASE_MANAGER: string;
|
|
4
|
+
DATABASE_FACTORY: string;
|
|
5
|
+
UNIVERSAL_DAO: string;
|
|
6
|
+
BASE_SERVICE: string;
|
|
7
|
+
SERVICE_MANAGER: string;
|
|
8
|
+
QUERY_BUILDER: string;
|
|
9
|
+
BASE_ADAPTER: string;
|
|
10
|
+
UNIVERSAL_SQLITE: string;
|
|
11
|
+
TRANSACTION: string;
|
|
12
|
+
CONNECTION: string;
|
|
13
|
+
APP: string;
|
|
14
|
+
CONFIG: string;
|
|
15
|
+
AUTH: string;
|
|
16
|
+
API: string;
|
|
17
|
+
DATABASE: string;
|
|
18
|
+
MIDDLEWARE: string;
|
|
19
|
+
UTILS: string;
|
|
20
|
+
SECURITY: string;
|
|
21
|
+
VALIDATION: string;
|
|
22
|
+
CACHE: string;
|
|
23
|
+
FILE_SYSTEM: string;
|
|
24
|
+
NETWORK: string;
|
|
25
|
+
SCHEDULER: string;
|
|
26
|
+
ERROR_HANDLER: string;
|
|
80
27
|
};
|
|
28
|
+
export { BaseModule, createModuleLogger, SQLiteModules, CommonLoggerConfig };
|
|
81
29
|
//# sourceMappingURL=logger-config.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logger-config.d.ts","sourceRoot":"","sources":["../../src/logger/logger-config.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,UAAU,EAGV,
|
|
1
|
+
{"version":3,"file":"logger-config.d.ts","sourceRoot":"","sources":["../../src/logger/logger-config.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,UAAU,EAGV,kBAAkB,EAClB,kBAAkB,EACnB,MAAM,eAAe,CAAC;AAEvB,QAAA,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;CAYlB,CAAC;AAUF,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAE,aAAa,EAAE,kBAAkB,EAAE,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dqcai/sqlite",
|
|
3
|
-
"version": "3.0
|
|
3
|
+
"version": "3.1.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Universal SQLite adapter for Node.js, Browser, Deno, Bun, and React Native with a unified API and query builder.",
|
|
6
6
|
"main": "lib/index.js",
|
|
@@ -80,6 +80,6 @@
|
|
|
80
80
|
"access": "public"
|
|
81
81
|
},
|
|
82
82
|
"dependencies": {
|
|
83
|
-
"@dqcai/logger": "^2.
|
|
83
|
+
"@dqcai/logger": "^2.1.0"
|
|
84
84
|
}
|
|
85
85
|
}
|