Connector/Node.js
Explore MariaDB Connector/Node.js, the official client library for Node.js. Connect applications to MariaDB/MySQL databases, leverage Promise/Callback APIs for efficient data access.
Last updated
Was this helpful?
Explore MariaDB Connector/Node.js, the official client library for Node.js. Connect applications to MariaDB/MySQL databases, leverage Promise/Callback APIs for efficient data access.
MariaDB Connector/Node.js is the official Node.js client library for connecting applications to MariaDB and MySQL databases, offering both Promise and Callback APIs. It is LGPL licensed.
MariaDB Connector/Node.js is a native JavaScript driver for connecting Node.js applications to MariaDB and MySQL databases, supporting both Promise and Callback APIs via npm.
The batch API in MariaDB Connector/Node.js sends multiple parameterized queries in one network trip, with server-version-aware optimizations and max_allowed_packet handling.
The MariaDB Connector/Node.js Callback API provides MySQL- and mysql2-compatible callback-style access to MariaDB, with connection, query, batch, and pool methods using familiar patterns.
MariaDB Connector/Node.js pipelining dispatches queries in FIFO order without blocking on each response, improving throughput for high-volume workloads over high-latency connections.
The Promise API is the default interface for MariaDB Connector/Node.js, enabling async/await patterns for connections, queries, batch operations, and transactions with MariaDB.
Getting started with MariaDB Connector/Node.js: installation, connection pooling, query execution, and error handling.
MariaDB Connector/Node.js connection options include essential, SSL, and advanced parameters for configuring host, authentication, compression, timeouts, and numeric type handling.
Node.js connectors beyond the official MariaDB Connector/Node.js: alternative drivers, ORMs, and other methods to connect Node.js applications to MariaDB.
Last updated
Was this helpful?
Was this helpful?

