Skip to content

estoianovici/node-db-cubrid

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

db-cubrid: CUBRID database bindings for Node.js

For detailed information about this and other Node.js database bindings visit the [Node.js db-cubrid homepage] homepage.

INSTALL

Before proceeding with installation, you need to have the libcascci development libraries and include files. PATH to CUBRID install is mandatory and it should be specified prior to installation if not already set. For example:

$ export CUBRID=/home/user/CUBRID

Install with npm:

$ npm install db-cubrid

QUICK START

var cubrid = require('db-cubrid');
new cubrid.Database({
    hostname: 'localhost',
    user: 'dba',
    password: 'password',
    database: 'node'
}).connect(function(error) {
    if (error) {
        return console.log("CONNECTION ERROR: " + error);
    }

    this.query().select('*').from('users').execute(function(error, rows) {
        if (error) {
            return console.log('ERROR: ' + error);
        }
        console.log(rows.length + ' ROWS');
    });
});

LICENSE

This module is released under the [MIT License] license.

About

cubrid API for node-db

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published