Releases: CraZySacX/node-jdbc
Releases · CraZySacX/node-jdbc
v0.2.2
New Features
- Added support for connections keepalive.
- Added initial support for winston logging.
Keepalive is disabled by default. Logging is set to info. To adjust, add the following to your configuration:
new jdbc({
url: 'jdbc:mysql://mydbhost/thedb',
minpoolsize: 5,
maxpoolsize: 10,
properties: {
user: 'user',
password: 'password'
},
keepalive: {
interval: 120000,
query: 'select 1',
enabled: true
},
logging: {
level: 'debug'
}
})
keepalive properties
- interval: How often to issue the keepalive query in ms.
- query: The query to use. Make sure this is a cheap to run query. Every open connection will run it.
- enabled: true or false
v0.2.0
v0.1.6
v0.1.5
v0.1.4
- Added close to resultset and statement, to allow users to explicitly manage those resources.
- Added the drivername property back into the config, to allow older or non-conforming drivers to be loaded in the old fashion with Class.forName and registerDriver.
v0.1.2
toObject and execute on Statement
- The toObject function was added to resultset. This allows gives you column metadata along with 0 or more rows.
- The execute function was added to statement. This wraps the underlying execute Java API method.
Major API Refactor
See the Major API Refactor section of the README file for the most significant changes.