wsp-ms-core 1.0.59 → 1.0.60
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.
- package/dist/index.d.mts +2 -1
- package/dist/index.d.ts +2 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -309,10 +309,11 @@ interface DatabaseConnection<Q = string, Params = unknown[], Row = Record<string
|
|
|
309
309
|
transaction<T>(fn: (conn: this) => Promise<T>): Promise<T>;
|
|
310
310
|
close(): Promise<void>;
|
|
311
311
|
}
|
|
312
|
-
interface DatabaseConnector<C extends DatabaseConnection = DatabaseConnection
|
|
312
|
+
interface DatabaseConnector<C extends DatabaseConnection = DatabaseConnection, Q = string, Params = unknown[], Row = Record<string, unknown>> {
|
|
313
313
|
getConnection(options?: {
|
|
314
314
|
readonly?: boolean;
|
|
315
315
|
}): Promise<C>;
|
|
316
|
+
query<T = Row>(statement: Q, params?: Params): Promise<T[]>;
|
|
316
317
|
closePool(): Promise<void>;
|
|
317
318
|
}
|
|
318
319
|
|
package/dist/index.d.ts
CHANGED
|
@@ -309,10 +309,11 @@ interface DatabaseConnection<Q = string, Params = unknown[], Row = Record<string
|
|
|
309
309
|
transaction<T>(fn: (conn: this) => Promise<T>): Promise<T>;
|
|
310
310
|
close(): Promise<void>;
|
|
311
311
|
}
|
|
312
|
-
interface DatabaseConnector<C extends DatabaseConnection = DatabaseConnection
|
|
312
|
+
interface DatabaseConnector<C extends DatabaseConnection = DatabaseConnection, Q = string, Params = unknown[], Row = Record<string, unknown>> {
|
|
313
313
|
getConnection(options?: {
|
|
314
314
|
readonly?: boolean;
|
|
315
315
|
}): Promise<C>;
|
|
316
|
+
query<T = Row>(statement: Q, params?: Params): Promise<T[]>;
|
|
316
317
|
closePool(): Promise<void>;
|
|
317
318
|
}
|
|
318
319
|
|