All notable changes to this project will be documented in this file.
- [DbConnection] Add
options
object toquery
andbulkInsert
functions - [DbConnection] Add ability to run
query
andbulkInsert
as prepared statements on the database via prepare and execute SQL commands - [DbConnection] Expose
escape
andescapeId
helper functions frommysql
library
- Upgrade all dependencies
- [DbConnection] Add
transactionQuery
command
- [RedisConnection] Add
llen
command
- [DbConnection] Ability to run query as a stream
- [RedisConnection] Expose psubscribe command
- [RedisConnection] Expose getset command
- Promisified all Redis calls to make the Redis connector behave exactly the same as the underlying client.
- Remove error warn and swallowing from subscribe method, because that's not appropriate in a library.
- Re-added Prometheus metrics module to top-level module and DbConnection
- [DbConnection] Export metrics and print out logs when key pool connection lifecycle events occur
- [DbConnection] Fix multi-statement query preparation when the
paramLabels
flag is set.
- Upgraded node-mysql2 module to include support for more pool connection lifecycle events
- [DbConnection] Options parameter to multi-statement query to switch between labelled and positional parameters
- [RedisConnection] Allow passing a single value to
lpush
,rpush
andsubscribe
without wrapping it in an array.
- Redis pub/sub commands:
- publish
- subscribe
- listen
- Add ability to suppress info logs for redis commands
- Passes configurable port to mysql
- Upgrade to node-app-base 0.4.13 to fix memory leak
- Pass correct arguments to lpop and rpop redis commands
- New Redis methods for lists
- lpush
- rpush
- lpop
- rpop
- blpop
- brpop
- Correctly set Redis DB index
- Fixed linting error
- [DbConnection]
connectionLimit
pool flag and increase default to a more reasonable (higher) value - [DbConnection] Explain connection pool flags
- No longer accept metrics parameter when initialising the module
- Remove erroneous, non-generic metric logging from JSON API calls
- [DbConnection] Add healthcheck function
- [RedisConnection] Add healtcheck function
- Add generic healthcheck callback function for node-app-base healthcheck listener
- [DbConnection] Fix always using default pool connection options instead of the ones supplied by the client
- [DbConnection] Upgraded MySQL driver from
node-mysql
tonode-mysql2
, which is faster and fully API-compatible with the former.
- [DbConnection] Set default connection handling parameters
- [RedisConnection] Add
get
andmget
commands
- [DbConnection] Allow user to specify pool/connection options
- [DbConnection] Multi-statement queries should always return an array
- [DbConnection] Add label (colon) query formatter to single-statement query function
- Expose connection logging flag which was previously hidden
- [DbConnection] Multiple statements are no longer enabled by default
- Redis connector
- Add optional label parameter to data query functions to increase log specificity
- Add timers to connectors queries
- [DbConnection] Allow query values to be passed into
query
- First release
- MySQL (v1) client
- HTTP Request client
- JSON HTTP Request client
The format of this changelog is based on Keep a Changelog and this project adheres to Semantic Versioning.