Skip to main content

Hello,
I would like to open a thread regarding the possibility of using the MVSP utility for the "D3" database from node.js.
I found a JavaScript code snippet online using a rocket-d3 package.
Unfortunately, this package is no longer available!
Have you heard of it and do you have this package handy?

Below is the code snippet found online:

The d3 package exists.
The rocket-d3 package is no longer available.

npm install d3
npm install rocket-d3

const d3 = require('d3');
const RocketD3 = require('rocket-d3');

const dbConnection = new RocketD3.Connection({
host: 'your-db-host',
port: 1234,
user: 'your-username',
password: 'your-password'
});

dbConnection.connect((err) => {
if (err) {
console.error('Error connecting to database:', err);
} else {
console.log('Connection successful!');

/ Query example
dbConnection.query('SELECT * FROM your_table', (err, results) => {
if (err) {
console.error('Error executing query:', err);
} else {
console.log('Query results:', results);
}

dbConnection.close();
});
}
});

Thanking you,



------------------------------
Laurent Dupouy
Developper
CERI SAS
FR
------------------------------