Skip to content

Commit

Permalink
fix: add ProcedureCallPacket to promise-based execute overloads
Browse files Browse the repository at this point in the history
  • Loading branch information
wellwelwel committed Jun 30, 2023
1 parent f9b073d commit 8292416
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import {
FieldPacket,
RowDataPacket,
ResultSetHeader,
ProcedureCallPacket,
} from '../../packets/index.js';
import { QueryOptions, QueryableConstructor } from '../Query.js';

Expand All @@ -17,6 +18,7 @@ export declare function ExecutableBase<T extends QueryableConstructor>(
| RowDataPacket[]
| RowDataPacket[][]
| OkPacket[]
| ProcedureCallPacket
>(
sql: string
): Promise<[T, FieldPacket[]]>;
Expand All @@ -27,6 +29,7 @@ export declare function ExecutableBase<T extends QueryableConstructor>(
| RowDataPacket[]
| RowDataPacket[][]
| OkPacket[]
| ProcedureCallPacket
>(
sql: string,
values: any
Expand All @@ -38,6 +41,7 @@ export declare function ExecutableBase<T extends QueryableConstructor>(
| RowDataPacket[]
| RowDataPacket[][]
| OkPacket[]
| ProcedureCallPacket
>(
options: QueryOptions
): Promise<[T_2, FieldPacket[]]>;
Expand All @@ -48,6 +52,7 @@ export declare function ExecutableBase<T extends QueryableConstructor>(
| RowDataPacket[]
| RowDataPacket[][]
| OkPacket[]
| ProcedureCallPacket
>(
options: QueryOptions,
values: any
Expand Down

0 comments on commit 8292416

Please sign in to comment.