maazdb-js
v1.0.0
Published
Official Node.js Driver for MaazDB
Maintainers
Readme
MaazDB-JS 🟩
The Official Node.js Driver for MaazDB
maazdb-js is a high-performance, asynchronous Node.js client for MaazDB. It uses native Promises and Buffers to handle the binary protocol securely over TLS.
📦 Installation
npm install maazdb-js🛠 Usage
const MaazDB = require('maazdb-js');
async function run() {
const db = new MaazDB();
try {
// Connect securely
await db.connect("127.0.0.1", 8888, "admin", "password");
// Run SQL
await db.query("CREATE DATABASE web_app;");
await db.query("USE web_app;");
const users = await db.query("SELECT * FROM users;");
console.log(users);
} catch (e) {
console.error(e);
} finally {
db.close();
}
}
run();🧪 Testing
- Start your Rust Server.
- Run the example:
node examples/basic.jsCreated for the MaazDB Ecosystem.
