badmfck-api-server 1.1.2 → 1.1.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -38,6 +38,7 @@ export declare class MysqlService extends BaseService {
38
38
  options: MysqlServiceOptions;
39
39
  retries: number;
40
40
  constructor(options: MysqlServiceOptions);
41
+ static executeQuery(query: MySqlQuery | MySqlQuery[]): Promise<MysqlResult[]>;
41
42
  init(): Promise<void>;
42
43
  onApplicationReady(): Promise<void>;
43
44
  static prepareQuery(query: string, fields: MysqlQueryField[]): string;
@@ -21,6 +21,7 @@ class MysqlService extends BaseService_1.BaseService {
21
21
  this.options = options;
22
22
  this.init();
23
23
  }
24
+ static async executeQuery(query) { return await exports.REQ_MYSQL_QUERY.request(query); }
24
25
  async init() {
25
26
  const ok = await this.createPool();
26
27
  if (!ok) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "badmfck-api-server",
3
- "version": "1.1.2",
3
+ "version": "1.1.3",
4
4
  "description": "Simple API http server based on express",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",