mac-brand-spaces / node-nexusdb

A node-library to acces nexusdb.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

node-nexusdb

This module provides a node interface to the NexusDB database engine.

Installation

npm install node-nexusdb

Usage

const nexusdb = require("node-nexusdb");

nexusdb.loadDll();

const db_local = nexusdb.NexusLocalDatabase("test-db")
db_local.execute("CREATE TABLE users (id INTEGER, name VARCHAR(255))")
db_local.execute("INSERT INTO users (id, name) VALUES (1, 'Franz')")
const res2 = db_local.execute("SELECT * FROM users")
console.log(res2);
db_local.close();

const db_remote = nexusdb.NexusRemoteDatabase("127.0.0.1", "test-db", "administrator", "NexusDB")
const res = db_remote.execute("SELECT * FROM test_table")
console.log(res);
db_remote.close();

nexusdb.unloadDll();

Requirements

  • Node.js 8.0 or higher
  • Windows 7 or higher

Build Requirements

  • NexusDB 4.50 or higher
  • Node.js 8.0 or higher
  • Windows 7 or higher
  • Delphi 12 or higher

Build

make

About

A node-library to acces nexusdb.


Languages

Language:C++ 55.8%Language:JavaScript 26.2%Language:C 11.8%Language:Makefile 4.8%Language:Python 1.4%