Comparing version 3.4.3 to 3.4.4
{ | ||
"name": "mysql2", | ||
"version": "3.4.3", | ||
"version": "3.4.4", | ||
"description": "fast mysql driver. Implements core protocol, prepared statements, ssl and compression in native JS", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -5,2 +5,3 @@ import { OkPacket } from './OkPacket.js'; | ||
import { Field } from './Field.js'; | ||
import { ProcedureCallPacket } from './ProcedurePacket.js'; | ||
import { ResultSetHeader } from './ResultSetHeader.js'; | ||
@@ -15,2 +16,3 @@ import { OkPacketParams } from './params/OkPacketParams.js'; | ||
Field, | ||
ProcedureCallPacket, | ||
ResultSetHeader, | ||
@@ -17,0 +19,0 @@ OkPacketParams, |
@@ -6,2 +6,3 @@ import { | ||
ResultSetHeader, | ||
ProcedureCallPacket, | ||
} from '../packets/index.js'; | ||
@@ -14,2 +15,3 @@ import { | ||
} from './Query.js'; | ||
export declare function ExecutableBase<T extends QueryableConstructor>( | ||
@@ -26,2 +28,3 @@ Base?: T | ||
| OkPacket[] | ||
| ProcedureCallPacket | ||
>( | ||
@@ -34,3 +37,3 @@ sql: string, | ||
execute< | ||
T_1 extends | ||
T extends | ||
| OkPacket | ||
@@ -41,2 +44,3 @@ | ResultSetHeader | ||
| OkPacket[] | ||
| ProcedureCallPacket | ||
>( | ||
@@ -46,7 +50,7 @@ sql: string, | ||
callback?: | ||
| ((err: QueryError | null, result: T_1, fields: FieldPacket[]) => any) | ||
| ((err: QueryError | null, result: T, fields: FieldPacket[]) => any) | ||
| undefined | ||
): Query; | ||
execute< | ||
T_2 extends | ||
T extends | ||
| OkPacket | ||
@@ -57,10 +61,11 @@ | ResultSetHeader | ||
| OkPacket[] | ||
| ProcedureCallPacket | ||
>( | ||
options: QueryOptions, | ||
callback?: | ||
| ((err: QueryError | null, result: T_2, fields?: FieldPacket[]) => any) | ||
| ((err: QueryError | null, result: T, fields?: FieldPacket[]) => any) | ||
| undefined | ||
): Query; | ||
execute< | ||
T_3 extends | ||
T extends | ||
| OkPacket | ||
@@ -71,2 +76,3 @@ | ResultSetHeader | ||
| OkPacket[] | ||
| ProcedureCallPacket | ||
>( | ||
@@ -76,3 +82,3 @@ options: QueryOptions, | ||
callback?: | ||
| ((err: QueryError | null, result: T_3, fields: FieldPacket[]) => any) | ||
| ((err: QueryError | null, result: T, fields: FieldPacket[]) => any) | ||
| undefined | ||
@@ -79,0 +85,0 @@ ): Query; |
@@ -6,2 +6,3 @@ import { | ||
ResultSetHeader, | ||
ProcedureCallPacket, | ||
} from '../../packets/index.js'; | ||
@@ -21,2 +22,3 @@ import { QueryOptions, QueryableConstructor } from '../Query.js'; | ||
| OkPacket[] | ||
| ProcedureCallPacket | ||
>( | ||
@@ -26,3 +28,3 @@ sql: string | ||
execute< | ||
T_1 extends | ||
T extends | ||
| OkPacket | ||
@@ -33,8 +35,9 @@ | ResultSetHeader | ||
| OkPacket[] | ||
| ProcedureCallPacket | ||
>( | ||
sql: string, | ||
values: any | ||
): Promise<[T_1, FieldPacket[]]>; | ||
): Promise<[T, FieldPacket[]]>; | ||
execute< | ||
T_2 extends | ||
T extends | ||
| OkPacket | ||
@@ -45,7 +48,8 @@ | ResultSetHeader | ||
| OkPacket[] | ||
| ProcedureCallPacket | ||
>( | ||
options: QueryOptions | ||
): Promise<[T_2, FieldPacket[]]>; | ||
): Promise<[T, FieldPacket[]]>; | ||
execute< | ||
T_3 extends | ||
T extends | ||
| OkPacket | ||
@@ -56,7 +60,8 @@ | ResultSetHeader | ||
| OkPacket[] | ||
| ProcedureCallPacket | ||
>( | ||
options: QueryOptions, | ||
values: any | ||
): Promise<[T_3, FieldPacket[]]>; | ||
): Promise<[T, FieldPacket[]]>; | ||
}; | ||
} & T; |
@@ -6,2 +6,3 @@ import { | ||
ResultSetHeader, | ||
ProcedureCallPacket, | ||
} from '../../packets/index.js'; | ||
@@ -21,2 +22,3 @@ import { QueryOptions, QueryableConstructor } from '../Query.js'; | ||
| OkPacket[] | ||
| ProcedureCallPacket | ||
>( | ||
@@ -26,3 +28,3 @@ sql: string | ||
query< | ||
T_1 extends | ||
T extends | ||
| OkPacket | ||
@@ -33,8 +35,9 @@ | ResultSetHeader | ||
| OkPacket[] | ||
| ProcedureCallPacket | ||
>( | ||
sql: string, | ||
values: any | ||
): Promise<[T_1, FieldPacket[]]>; | ||
): Promise<[T, FieldPacket[]]>; | ||
query< | ||
T_2 extends | ||
T extends | ||
| OkPacket | ||
@@ -45,7 +48,8 @@ | ResultSetHeader | ||
| OkPacket[] | ||
| ProcedureCallPacket | ||
>( | ||
options: QueryOptions | ||
): Promise<[T_2, FieldPacket[]]>; | ||
): Promise<[T, FieldPacket[]]>; | ||
query< | ||
T_3 extends | ||
T extends | ||
| OkPacket | ||
@@ -56,7 +60,8 @@ | ResultSetHeader | ||
| OkPacket[] | ||
| ProcedureCallPacket | ||
>( | ||
options: QueryOptions, | ||
values: any | ||
): Promise<[T_3, FieldPacket[]]>; | ||
): Promise<[T, FieldPacket[]]>; | ||
}; | ||
} & T; |
@@ -6,2 +6,3 @@ import { | ||
ResultSetHeader, | ||
ProcedureCallPacket, | ||
} from '../packets/index.js'; | ||
@@ -14,2 +15,3 @@ import { | ||
} from './Query.js'; | ||
export declare function QueryableBase<T extends QueryableConstructor>( | ||
@@ -26,2 +28,3 @@ Base?: T | ||
| OkPacket[] | ||
| ProcedureCallPacket | ||
>( | ||
@@ -34,3 +37,3 @@ sql: string, | ||
query< | ||
T_1 extends | ||
T extends | ||
| OkPacket | ||
@@ -41,2 +44,3 @@ | ResultSetHeader | ||
| OkPacket[] | ||
| ProcedureCallPacket | ||
>( | ||
@@ -46,7 +50,7 @@ sql: string, | ||
callback?: | ||
| ((err: QueryError | null, result: T_1, fields: FieldPacket[]) => any) | ||
| ((err: QueryError | null, result: T, fields: FieldPacket[]) => any) | ||
| undefined | ||
): Query; | ||
query< | ||
T_2 extends | ||
T extends | ||
| OkPacket | ||
@@ -57,10 +61,11 @@ | ResultSetHeader | ||
| OkPacket[] | ||
| ProcedureCallPacket | ||
>( | ||
options: QueryOptions, | ||
callback?: | ||
| ((err: QueryError | null, result: T_2, fields?: FieldPacket[]) => any) | ||
| ((err: QueryError | null, result: T, fields?: FieldPacket[]) => any) | ||
| undefined | ||
): Query; | ||
query< | ||
T_3 extends | ||
T extends | ||
| OkPacket | ||
@@ -71,2 +76,3 @@ | ResultSetHeader | ||
| OkPacket[] | ||
| ProcedureCallPacket | ||
>( | ||
@@ -76,3 +82,3 @@ options: QueryOptions, | ||
callback?: | ||
| ((err: QueryError | null, result: T_3, fields: FieldPacket[]) => any) | ||
| ((err: QueryError | null, result: T, fields: FieldPacket[]) => any) | ||
| undefined | ||
@@ -79,0 +85,0 @@ ): Query; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
599732
108
14902