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 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
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "wsp-ms-core",
3
3
  "author": "Wonasports",
4
- "version": "1.0.59",
4
+ "version": "1.0.60",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.js",
7
7
  "types": "dist/index.d.ts",