1.0.0 • Published 7 years ago

sails-db2 v1.0.0

Weekly downloads
3
License
MIT
Repository
github
Last release
7 years ago

Sails-DB2 Adapter

IBM DB2 adapter for the Sails framework and Waterline ORM. Allows you to use DB2 via your models to store and retrieve data. Also provides a query() method for a direct interface to execute raw SQL commands.

Installation

Sails-DB2 uses ibm_db driver to interact with the db, so install it first.

Then, install this adapter via NPM:

$ npm install sails-db2

Sails Configuration

Add the db2 config to the config/adapters.js file. Basic options:

module.exports.adapters = {
  default: 'db2',

  db2: {
    module   : 'sails-db2',
    host     : 'localhost',
    port     : 50000,
    user     : 'username',
    password : 'password',
    database : 'DB2 Database Name',
    schemaDB2: 'my_schema'
  }
};
1.0.0

7 years ago

0.0.8

8 years ago

0.0.7

8 years ago

0.0.6

9 years ago

0.0.5

9 years ago

0.0.4

10 years ago

0.0.3

10 years ago

0.0.2

10 years ago