MariaDB Connector/Node.js

Overview

Node.js developers can connect to MariaDB Enterprise through a native MariaDB Connector. Using MariaDB Connector/Node.js you can connect to MariaDB Enterprise to use and administer databases from within your Node.js application.

Connector

MariaDB Connector/Node.js

Supported Versions

2.5

Programming Language

JavaScript

Programming Language Version

Node.js 10, 12, or later

API

Promise API
Callback API

Supports TLS

Yes

Supports Connection Pools

Yes

License

GNU Lesser General Public License v2.1

Compatibility

MariaDB Connector/Node.js is compatible with:

  • MariaDB SkySQL DBaaS

  • MariaDB Enterprise (including MariaDB Enterprise Server and MariaDB MaxScale)

  • MariaDB Community Server

API-Specific Documentation

MariaDB Connector/Node.js is available through two distinct API's: Promise and Callback.

Promise API

The Promise API is an asynchronous API that is based on Promise and can be used to connect using MariaDB Connector/Node.js from within your Node.js application.

Callback API

The Callback API is an asynchronous API that is based on the traditional callback functions and can be used to connect using MariaDB Connector/Node.js from within your Node.js application. Callback API additionally provides compatibility with the mysql and mysql2 APIs.