Skip to content

Releases: CraZySacX/node-jdbc

v0.2.2

18 Mar 18:39
Compare
Choose a tag to compare

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

25 Feb 16:52
v0.2.0
Compare
Choose a tag to compare

API updates to bring more inline with Java API. Also, some better handling regarding function arguments.

v0.1.6

26 Dec 03:41
v0.1.6
Compare
Choose a tag to compare

Added setDate and setTimestamp to preparedstatement.
Added get/setQueryTimeout and getFetchSize to statement.

v0.1.5

26 Dec 03:48
v0.1.5
Compare
Choose a tag to compare

Large result sets cause the async bit to blow its call stack, and regardless the entire resultset gets stored in memory this way. The toObjIter method was implemented to solve this problem.

v0.1.4

12 Oct 19:18
v0.1.4
Compare
Choose a tag to compare
  • 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

19 Sep 04:06
v0.1.2
Compare
Choose a tag to compare
  • Support for node v4.0.x and v4.1.x.
  • Support for Java 8.

toObject and execute on Statement

31 Aug 19:58
v0.1.1
Compare
Choose a tag to compare
  1. The toObject function was added to resultset. This allows gives you column metadata along with 0 or more rows.
  2. The execute function was added to statement. This wraps the underlying execute Java API method.

Major API Refactor

24 Aug 16:49
v0.1.0
Compare
Choose a tag to compare

See the Major API Refactor section of the README file for the most significant changes.

v0.0.15

18 Aug 14:52
v0.0.15
Compare
Choose a tag to compare

Fixed TIME and TIMESTAMP type support. This is an initial implementation. This should be made more elegant, and more robust tests still need to be added.

v0.0.14

18 Aug 14:51
v0.0.14
Compare
Choose a tag to compare
v0.0.14