feat: add async SQLite on Node 24 and improve messaging diagnostics (#520)
Move database work off the main thread on Node.js 24 and improve message handling and runtime diagnostics. Preserve migration, restart, and concurrency coverage with the async SQLite driver.
This commit is contained in:
1 parent
20f48d11ec
commit
c7428363cb
170 files changed
+7748
-3913
No files matched your search
@@ -252,10 +252,14 @@ async function execute(
|
||||
);
|
||||
}
|
||||
|
||||
const params =
|
||||
args.params && typeof args.params === 'object' && !Array.isArray(args.params)
|
||||
? (args.params as Record<string, unknown>)
|
||||
: {};
|
||||
if (
|
||||
args.params !== undefined &&
|
||||
(args.params === null || typeof args.params !== 'object' || Array.isArray(args.params))
|
||||
) {
|
||||
return asError('params 必须是对象。');
|
||||
}
|
||||
|
||||
const params = (args.params ?? {}) as Record<string, unknown>;
|
||||
let inputFile: string | undefined;
|
||||
|
||||
if (args.execution !== undefined) {
|
||||
|
||||
Reference in new issue
Block a user