48 Commits

Author SHA1 Message Date
c8fbc69921 [CONJS-326] migrate from commonJS to ESM 2025-08-01 17:45:51 +02:00
38d8b76442 [misc] update TS file to ES module syntax 2025-07-11 19:22:26 +02:00
26646cd134 [CONJS-309] add TypeScript callback API #298 2025-07-01 18:12:09 +02:00
d8835d6c3e [misc] test addition: creating pool from connection string 2025-03-17 18:52:19 +01:00
793400e7a1 [CONJS-305] Connection close alias for end function not in typescript definition #300 2025-03-11 14:55:47 +01:00
5d72d14093 [CONJS-301] temporary disabling TLS identity validation until certificate automatic resolution 2024-09-09 19:48:37 +02:00
233d717fad [CONJS-298] Typescript wrong named longlong in place of bigint 2024-07-10 16:49:20 +02:00
4e6bf45272 [CONJS-297] adding testing for typescript connection queryTimeout and query timeout options 2024-07-10 16:30:44 +02:00
7569425955 [misc] various small corrections
* code simplification
* correct missing parameters
* coherence
* removing deprecated use
2024-03-05 17:25:39 +01:00
7a77b16038 [misc] update copyright 2024-02-12 19:14:05 +01:00
9cae8adfd6 [CONJS-266] Option infileStreamFactory addition for compatibility 2023-09-07 15:00:08 +02:00
7208a67755 [CONJS-261] TypeScript missing logParam connection option #247 2023-06-21 11:47:12 +00:00
d61d3c6ae8 [CONJS-258] All eventEmitters methods are not available on connections #244 2023-05-31 15:06:03 +02:00
a25d3b1d95 [CONJS-257] permit to import sql file directly #242 2023-05-29 10:35:27 +02:00
5032d97cf3 [CONJS-252] missing deprecated option supportBigNumbers and bigNumberStrings in Typescript #240 2023-05-10 15:08:17 +00:00
dd53f2ada5 [CONJS-249] add connection.listeners function to permit TypeORM compatibility 2023-05-02 11:10:13 +00:00
ba70356ae9 [CONJS-241] metaAsArray missing option in typescript description 2023-02-07 09:31:29 +01:00
13a3d75a57 [misc] test correction 2023-01-10 19:34:39 +01:00
58f4f2eb68 [CONJS-235] allow to pass TypeScript generic type 2023-01-10 14:42:09 +01:00
67e2ed9bee Merge branch 'master' into develop 2022-10-18 08:26:18 +02:00
7e8696f892 [misc] code coverage correction 2022-10-18 08:25:49 +02:00
104c400f90 merge 3.0.2 version 2022-10-17 15:42:09 +02:00
452d27894b [CONJS-222] permit streaming prepare statement result 2022-10-17 09:50:36 +02:00
9c4562acf2 [CONJS-225] Make result set's meta property non-enumerable 2022-10-10 21:08:18 +02:00
0f284918ed Merge branch 'maintenance/2.x' into develop
# Conflicts:
#	test/integration/test-auth-plugin.js
#	test/integration/test-pool-callback.js
#	types/index.d.ts
#	types/mariadb-tests.ts
2022-08-22 10:41:42 +02:00
378b5010b8 [CONJS-217] MySQL caching_sha2_password never succeed using FAST AUTHENTICATION 2022-08-22 10:34:27 +02:00
7972f08dc8 [CONJS-214] add missing pool.closed typescript definition 2022-08-18 14:45:31 +02:00
8c91a13f1f [misc] add code coverage 2022-08-18 14:41:42 +02:00
8e975c355d [misc] add typescript test coverage 2022-08-18 10:40:34 +02:00
c44640a819 [CONJS-199] return type for batch() is wrong on typescript #194 2022-08-18 10:30:04 +02:00
ebb3fefef1 [CONJS-199] return type for batch() is wrong on typescript 2022-07-18 10:22:19 +02:00
7a2f6b34c8 misc - update maxscale test for 6.2.0
add PAM test for maxscale (using dedicated port)
2022-01-10 14:56:40 +01:00
d78ba3babe [CONJS-180] compatibility: support mysql2 stream option #173 2021-10-18 17:36:25 +02:00
adfb558f29 [misc] code style length change to 120 2021-09-17 17:06:13 +02:00
acae4a2f5b [CONJS-175] Missing leakDetectionTimeout option in Typescript description #169 2021-09-15 14:05:43 +02:00
07bf592836 [CONJS-175] Missing leakDetectionTimeout option in Typescript description #169 2021-09-15 13:59:15 +02:00
9ce52f33e2 [CONJS-172] performance improvement.
* using mutable Packet object to avoid creating a new Object for each packet.
* set column data on creation, to avoid resolving data type parsing for each data.
* BIGINT parsing improvement, avoiding parsing data as text
* ensure using execute command option
* using undefined in place of 'utf8' to parse String when using node.js, avoiding name resolution
2021-07-20 14:19:46 +02:00
a8d9e7e4dd [CONJS-167] Custom logging implementation 2021-06-08 14:32:44 +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
fdbbc4b11e [CONJS-144] TypeScript type ssl wrong definitions #126 2020-08-31 11:28:28 +02:00
1a0c37070d [misc] bump dependencies
prettier code new version refactoring
2020-03-26 18:32:20 +01:00
64df2f93bb [misc] correcting eslint warning on typescript tests 2020-02-03 11:41:14 +01:00
b7be0b2197 [misc] typescript test correction 2020-01-06 17:22:48 +01:00
34b3bbdc33 [CONJS-111] missing pool event definition 2019-11-15 14:28:36 +01:00
ba953560fa [CONJS-108] typescript escape/escapeId definition 2019-11-14 10:10:16 +01:00
78a56de22d feat: expose version 2019-10-17 13:41:29 +02:00
bb7107c800 Fleshed out the type definition for FieldInfo, for use in typeCast callbacks.
Also removed an incorrect function definition for PoolCluster.add().
2019-09-26 14:35:10 +02:00
dbd2f87a2e [CONJS-63] adding typescript type definitions 2019-03-22 17:31:16 +01:00