sqlite-executor 4.0.10 → 4.0.11
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.
|
@@ -5,8 +5,9 @@ export const DEFAULT_STATEMENT_TIMEOUT: 30000;
|
|
|
5
5
|
* 创建包含 SQL 上下文的超时错误。
|
|
6
6
|
* 注意:sql 应已由调用方完成规范化,本函数不再内部调用 normalizeSQL。
|
|
7
7
|
*
|
|
8
|
-
* @param timeout
|
|
9
|
-
* @param sql
|
|
10
|
-
* @
|
|
8
|
+
* @param timeout - 超时时间(毫秒)
|
|
9
|
+
* @param sql - 超时发生时正在执行的 SQL 语句(已规范化)
|
|
10
|
+
* @param startTime - 任务开始时的 performance.now() 值(可选);提供后会生成人类可读的时间信息
|
|
11
|
+
* @returns 包含超时时间、时间信息和 SQL 的 Error 实例
|
|
11
12
|
*/
|
|
12
|
-
export function createTimeoutError(timeout: number, sql: string): Error;
|
|
13
|
+
export function createTimeoutError(timeout: number, sql: string, startTime?: number): Error;
|