@itrocks/mysql 0.2.1 → 0.2.2

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/cjs/mysql.d.ts CHANGED
@@ -9,7 +9,7 @@ import { Options } from '@itrocks/storage';
9
9
  import { SearchType } from '@itrocks/storage';
10
10
  import { Connection } from 'mariadb';
11
11
  export declare const DEBUG = false;
12
- export type AnyObject = Record<string, any>;
12
+ type AnyObject = Record<string, any>;
13
13
  interface Dependencies<QF extends object = object> {
14
14
  applyReadTransformer: <T extends object>(record: AnyObject, property: keyof T, object: T) => any;
15
15
  applySaveTransformer: <T extends object>(object: T, property: keyof T, record: AnyObject) => any;
package/cjs/mysql.js CHANGED
@@ -59,7 +59,10 @@ class Mysql extends storage_1.DataSource {
59
59
  async connect() {
60
60
  const mariaDbConfig = Object.assign(this.config, {
61
61
  allowPublicKeyRetrieval: true,
62
- dateStrings: false
62
+ dateStrings: false,
63
+ debugLen: 100000,
64
+ logParam: true,
65
+ trace: true
63
66
  });
64
67
  return this.connection = await (0, mariadb_1.createConnection)(mariaDbConfig);
65
68
  }
package/esm/mysql.d.ts CHANGED
@@ -9,7 +9,7 @@ import { Options } from '@itrocks/storage';
9
9
  import { SearchType } from '@itrocks/storage';
10
10
  import { Connection } from 'mariadb';
11
11
  export declare const DEBUG = false;
12
- export type AnyObject = Record<string, any>;
12
+ type AnyObject = Record<string, any>;
13
13
  interface Dependencies<QF extends object = object> {
14
14
  applyReadTransformer: <T extends object>(record: AnyObject, property: keyof T, object: T) => any;
15
15
  applySaveTransformer: <T extends object>(object: T, property: keyof T, record: AnyObject) => any;
package/esm/mysql.js CHANGED
@@ -54,7 +54,10 @@ export class Mysql extends DataSource {
54
54
  async connect() {
55
55
  const mariaDbConfig = Object.assign(this.config, {
56
56
  allowPublicKeyRetrieval: true,
57
- dateStrings: false
57
+ dateStrings: false,
58
+ debugLen: 100000,
59
+ logParam: true,
60
+ trace: true
58
61
  });
59
62
  return this.connection = await createConnection(mariaDbConfig);
60
63
  }
package/package.json CHANGED
@@ -61,5 +61,5 @@
61
61
  "build:esm": "tsc -p tsconfig.esm.json"
62
62
  },
63
63
  "types": "./esm/mysql.d.ts",
64
- "version": "0.2.1"
64
+ "version": "0.2.2"
65
65
  }