MariaDB Connector/Node.js 3.2.0 Release Notes

You are viewing an old version of this article. View the current version here.

Note: This page describes features in an unreleased version of MariaDB Connector/Node.js.

Unreleased means there are no official packages or binaries available for download which contain the features. The source code is available on GitHub.

MariaDB Connector/Node.js 3.2.0 is a Stable (GA) release.

For an overview of MariaDB Connector/Node.js see the About MariaDB Connector/Node.js page

Notable changes

  • CONJS-250 'undefined' parameters are now permitted, for compatibility with mysql/mysql2 behavior
  • CONJS-257 permit to import sql file directly
  • CONJS-253 Node.js 20 is now tested and supported

API addition

  • importFile(options) → Promise
  • connection.importFile({file:'...', 'database': '...'}) → Promise
  • pool.importFile({file:'...', 'database': '...'}) → Promisepromise)

example:

    await conn.importFile({
        file: '/tmp/someFile.sql', 
        database: 'myDb'
    });

Issues Fixed

  • CONJS-252 missing deprecated option supportBigNumbers and bigNumberStrings in Typescript
  • CONJS-254 ensuring option connectTimeout is respected : timeout is removed when socket is successfully established, in place of returning connection object. Wasn't set when using pipe/unix socket
  • CONJS-255 In some case, pipelining was use even option explicitly disable it
  • CONJS-256 method changeUser can lead to error when using multi-authentication and pipelining
  • CONJS-258 All eventEmitters methods are not available on connections
  • CONJS-259 SqlError sqlMessage property alias for text addition

Comments

Comments loading...
Content reproduced on this site is the property of its respective owners, and this content is not reviewed in advance by MariaDB. The views, information and opinions expressed by this content do not necessarily represent those of MariaDB or any other party.