Socket
Socket
Sign inDemoInstall

sails-db2

Package Overview
Dependencies
56
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    sails-db2

DB2 adapter for Sails / Waterline


Version published
Maintainers
1
Created

Readme

Source

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'
  }
};

Keywords

FAQs

Last updated on 31 Jan 2017

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc