@qbobjx/core
Advanced tools
+12
-0
@@ -12,2 +12,12 @@ import type { ExecutionContext } from './execution-context.js'; | ||
| export type ObjxPluginQueryKind = QueryNode['kind'] | 'raw'; | ||
| export interface PluginCompiledQueryInfo { | ||
| readonly sql: string; | ||
| readonly parameterCount: number; | ||
| readonly metadata: Readonly<Record<string, unknown>>; | ||
| } | ||
| export interface PluginTimingInfo { | ||
| readonly startedAt: Date; | ||
| readonly finishedAt?: Date; | ||
| readonly durationMs?: number; | ||
| } | ||
| export interface QueryPluginContext { | ||
@@ -19,2 +29,4 @@ readonly model: AnyModelDefinition | undefined; | ||
| readonly queryKind?: ObjxPluginQueryKind; | ||
| readonly compiledQuery?: PluginCompiledQueryInfo; | ||
| readonly timing?: PluginTimingInfo; | ||
| } | ||
@@ -21,0 +33,0 @@ export interface ResultPluginContext extends QueryPluginContext { |
+1
-1
| { | ||
| "name": "@qbobjx/core", | ||
| "version": "0.4.0", | ||
| "version": "0.5.0", | ||
| "private": false, | ||
@@ -5,0 +5,0 @@ "type": "module", |
88367
0.45%2084
0.58%