8000 GitHub - bgag/any-db-jdbc: A any-db JDBC adapter
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

bgag/any-db-jdbc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A any-db JDBC adapter

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0