<commit_before># db-nuodb: NuoDB database bindings for Node.js #

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

## BUILDING ##

```bash
git submodule update --init

export PATH=/usr/local/bin:$PATH
export NODE_PATH=/usr/local/bin/node
export NUODB_INCLUDE_DIR=/Users/rbuck/tmp/nuodb-1.1.9999.macosx.x86_64/include
export NUODB_LIB_DIR=/Users/rbuck/tmp/nuodb-1.1.9999.macosx.x86_64/lib64

node-waf configure && node-waf build
```

## INSTALL ##

Before proceeding with installation, you need to have the 
[NUOCI instant client] [nci] [libraries] [nci-lib] and [include files] [nci-inc]. 
In order for the installation script to locate them properly, you'll 
need to set the NUODB_INCLUDE_DIR and NUODB_LIB_DIR environment variables. 
For example:

```bash
$ export NUODB_INCLUDE_DIR=/opt/nuodb/include
$ export NUODB_LIB_DIR=/opt/nuodb/lib64
```

Once the environment variables are set, install with npm:

```bash
$ npm install db-nuodb
```

Note: Until such time as we properly set ORIGIN/RPATH you may need to explicitly
set the LD_LIBRARY_PATH:

```bash
export LD_LIBRARY_PATH=/home/rbuck/.node_libraries/.npm/db-nuodb/0.1.0/package/build/default/
```

Also, verify you have both these files installed to the same directory as the
nuo_bindings.node file:


  libNuoRemote.so
  libNuoSqlApi.so

## QUICK CHECK ##

Run the following command to verify the shared library can be loaded by node:

```bash
$ node
````

In node run the following Javascript commands, then CTRL-C twice to exit:

```javascript
> var mod = require('./db-nuodb');
undefined
> mod;
{}
> 
(^C again to quit)
````

## QUICK START ##

```javascript
var nuodb = require('db-nuodb');
new nuodb.Database({
    hostname: 'localhost',
    user: 'root',
    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 [NUODB License] [license].

Related Pages:

[homepage]: http://nodejsdb.org/db-mysql
[license]: http://www.opensource.org/licenses/mit-license.php<commit_msg>Fix license path<commit_after># db-nuodb: NuoDB database bindings for Node.js #

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

## BUILDING ##

```bash
git submodule update --init

export PATH=/usr/local/bin:$PATH
export NODE_PATH=/usr/local/bin/node
export NUODB_INCLUDE_DIR=/Users/rbuck/tmp/nuodb-1.1.9999.macosx.x86_64/include
export NUODB_LIB_DIR=/Users/rbuck/tmp/nuodb-1.1.9999.macosx.x86_64/lib64

node-waf configure && node-waf build
```

## INSTALL ##

Before proceeding with installation, you need to have the 
[NUOCI instant client] [nci] [libraries] [nci-lib] and [include files] [nci-inc]. 
In order for the installation script to locate them properly, you'll 
need to set the NUODB_INCLUDE_DIR and NUODB_LIB_DIR environment variables. 
For example:

```bash
$ export NUODB_INCLUDE_DIR=/opt/nuodb/include
$ export NUODB_LIB_DIR=/opt/nuodb/lib64
```

Once the environment variables are set, install with npm:

```bash
$ npm install db-nuodb
```

Note: Until such time as we properly set ORIGIN/RPATH you may need to explicitly
set the LD_LIBRARY_PATH:

```bash
export LD_LIBRARY_PATH=/home/rbuck/.node_libraries/.npm/db-nuodb/0.1.0/package/build/default/
```

Also, verify you have both these files installed to the same directory as the
nuo_bindings.node file:


  libNuoRemote.so
  libNuoSqlApi.so

## QUICK CHECK ##

Run the following command to verify the shared library can be loaded by node:

```bash
$ node
````

In node run the following Javascript commands, then CTRL-C twice to exit:

```javascript
> var mod = require('./db-nuodb');
undefined
> mod;
{}
> 
(^C again to quit)
````

## QUICK START ##

```javascript
var nuodb = require('db-nuodb');
new nuodb.Database({
    hostname: 'localhost',
    user: 'root',
    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 [NUODB License] [license].

Related Pages:

[homepage]: http://nodejsdb.org/db-mysql
[license]: (nuodb-drivers/tree/master/LICENSE)
{'fraction_non_alphanumeric': 0.13295406658238518, 'fraction_numerical': 0.011378002528445006, 'mean_word_length': 3.981112277019937, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 1, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '182009', 'n_tokens_mistral': 1748, 'n_tokens_neox': 1581, 'n_words': 455}