node-db2

1.0.3 • Public • Published

Logo

Prerequisites:

  • Java must be installed >= 8

Installation:

pnpm add node-db2 # or
yarn add node-db2 # or
npm install node-db2

Usage:

const { executeQuery } = require('node-db2');

    executeQuery({
        jdbcUrl: 'jdbc:as400://<database host>/<database name>;<options>',
        userDb: <database user>,
        passwordDb: <database password>,
        query: <query>
    }).then( (data) => {
        console.log(data);
    }).catch( (error) => {
        console.log(error);
    }

Note: It can also be used via async/await.

Readme

Keywords

Package Sidebar

Install

npm i node-db2

Weekly Downloads

1

Version

1.0.3

License

ISC

Unpacked Size

5.63 MB

Total Files

5

Last publish

Collaborators

  • d4lvarez