Socket
Socket
Sign inDemoInstall

any-db-jdbc

Package Overview
Dependencies
26
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    any-db-jdbc

JDBC adapter for any-db


Version published
Weekly downloads
7
increased by75%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

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) {})
})

Keywords

FAQs

Last updated on 27 Jun 2016

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