A Node.js binding to MariaDB's non-blocking (MySQL-compatible) client library. Version 0.2.6 is the current stable release, targeting Node.js >=0.10.0. Unlike traditional libmysqlclient bindings, it uses MariaDB's non-blocking functions to achieve asynchronous behavior without multiple threads. It supports prepared statements, streaming rows via streams2, and metadata retrieval. This library is distinct from other MySQL drivers (e.g., mysql, mysql2) in that it specifically leverages MariaDB's client library for non-blocking I/O. However, note that it is no longer actively maintained; users are advised to consider alternatives like mysql2 or mariadb.
npm install mariasqlNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Connects to MariaDB, executes a parameterized query with positional placeholders, and logs results.
Review breaking changes at https://github.com/mscdex/node-mariasql/wiki/Upgrading-v0.1.x-to-v0.2.x
Consider migrating to 'mysql2' or 'mariadb' packages.
Always use `new Client({...})`.Install build tools: `npm install -g node-gyp` and ensure libmariadb-dev is installed (e.g., `apt-get install libmariadb-dev`).
Use: `var Client = require('mariasql'); var c = new Client({...});`Streaming requires assigning the query to a variable: `var query = c.query(...); query.on('result', ...);`