23 Commits

Author SHA1 Message Date
c8fbc69921 [CONJS-326] migrate from commonJS to ESM 2025-08-01 17:45:51 +02:00
35ce2dcedc [misc] command function now use JSON parameter 2024-05-21 19:19:13 +02:00
7a77b16038 [misc] update copyright 2024-02-12 19:14:05 +01:00
edabfba818 [misc] setting copyright header 2023-06-19 18:12:27 +02:00
fa7d42e662 [CONJS-257] ensuring importSql stability when using callback that permits using commands during execution 2023-05-30 00:11:36 +02:00
a25d3b1d95 [CONJS-257] permit to import sql file directly #242 2023-05-29 10:35:27 +02:00
c016856c60 [CONJS-246] pool not listening to 'error' event might exit application on error #180 2023-02-28 15:23:02 +01:00
aaef914d11 [CONJS-216] remove please-upgrade-node dependency 2022-08-19 12:20:34 +02:00
f03b396757 [CONJS-178] Update code to recent node.js version 2021-10-10 21:20:47 +02:00
a55d2ba58d [CONJS-178] Update code to recent node.js version 2021-10-01 17:23:40 +02:00
9425d86d70 [CONJS-178] Update code to recent node.js version 2021-09-23 16:49:14 +02:00
0685ec2ca7 CONJS-164 - new API that list options default value
new function `defaultOptions(option)` permit to list default option value.

> option JSON/String is not mandatory, corresponding to connection options.

example:
```
const mariadb = require('mariadb');
console.log(mariadb.defaultOptions({ timezone: '+00:00' }));
/*
{
  host: 'localhost',
  port: 3306,
  user: 'root',
  password: undefined,
  database: undefined,
  collation: Collations.fromName('UTF8MB4_UNICODE_CI'),
  timezone: '+00:00',
  ...
}
*/
```
2021-03-12 11:16:35 +01:00
f5df7245a3 [CONJS-86] Support extension type format 2020-04-02 09:12:06 +02:00
a4d762063f [CONJS-123] exporting SqlError class to permit instanceOf checks #100 2020-03-10 15:50:11 +01:00
78a56de22d feat: expose version 2019-10-17 13:41:29 +02:00
c8d5f6925a [CONJS-70] Pool improvement small rewrite for better separation in promise and call back implementation 2019-05-03 13:38:27 +02:00
ee37463c60 [misc] implement prettier
changing doublequote to simplequote
2019-03-22 14:13:11 +01:00
f7b7db431a [CONJS-41] cluster callback documentation 2018-10-01 14:15:13 +02:00
52616f0ef7 [CONJS-17] adding callback pool implementation 2018-07-16 19:04:18 +02:00
a73bb1d98b Improving documentation 2018-07-04 11:40:59 +02:00
521ab80e7b adding test error logging, and connection correction 2018-06-25 22:12:18 +02:00
5179933e6f adding coverall 2018-06-18 12:48:32 +02:00
06470bc054 Separation of callback connection versus promise implementation 2018-06-07 16:17:56 +02:00