any-db-jdbc

JDBC adapter for any-db

Stats

stars 🌟issues ⚠️updated 🛠created 🐣size 🏋️‍♀️
21Jun 27, 2016Feb 9, 2015Minified + gzip package size for any-db-jdbc in KB

Readme

any-db-jdbc

A any-db JDBC adapter.

Usage

See the any-db documentation how to use any-db. The JDBC adapter requires an additional driver register step to load the JDBC driver.

Example

This example connects to a HSQLDB on localhost with user user and password password.

var anyDB = require('any-db')
var anyDBJDBC = require('any-db-jdbc')

var config = {
  libpath: 'drivers/hsqldb.jar',
  drivername: 'org.hsqldb.jdbc.JDBCDriver',
  uri: 'jdbc:hsqldb:hsql://localhost/xdb',
  user: 'user',
  password: 'password'
}

// register the JDBC driver
anyDBJDBC.registerConfig(config)

var connection = anyDb.createConnection(config.uri, function (err) {
  // ...

 connection.end(function (err) {})
})

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.