@goodware/mysql
Advanced tools
Comparing version 3.0.7 to 3.0.8
16
index.js
@@ -55,6 +55,8 @@ /* eslint-disable no-param-reassign */ | ||
// eslint-disable-next-line quotes | ||
maxConnectDelay: Joi.alternatives(Joi.number().min(0), Joi.string()).default(100000).description( | ||
`The maximum amount of time (converted to milliseconds) to wait between connection attempts. It starts at 10 ms \ | ||
maxConnectDelay: Joi.alternatives(Joi.number().min(0), Joi.string()) | ||
.default(100000) | ||
.description( | ||
`The maximum amount of time (converted to milliseconds) to wait between connection attempts. It starts at 10 ms \ | ||
and increases exponentially.` | ||
), | ||
), | ||
multipleStatements: Joi.boolean().description(`true enables mysql2 connections to run multiple statements (separated \ | ||
@@ -82,3 +84,3 @@ by seicolons) via one call to query(), execute(), etc.`), | ||
*/ | ||
const logTag = 'mysql'; | ||
const logTag = 'db'; | ||
@@ -365,3 +367,3 @@ /** | ||
if (logger) { | ||
log(logger, ['error', logTag], { | ||
log(logger, ['warn', logTag], { | ||
message: `Destroying connection failed on '${this.connectOptions.host}'`, | ||
@@ -383,3 +385,3 @@ host: this.connectOptions.host, | ||
if (logger) { | ||
log(logger, ['error', logTag], { | ||
log(logger, ['warn', logTag], { | ||
message: `Dead connection detected on '${this.connectOptions.host}'`, | ||
@@ -395,3 +397,3 @@ host: this.connectOptions.host, | ||
if (logger) { | ||
log(logger, ['error', logTag], { | ||
log(logger, ['warn', logTag], { | ||
message: `Destroying connection failed on '${this.connectOptions.host}'`, | ||
@@ -398,0 +400,0 @@ host: this.connectOptions.host, |
@@ -0,1 +1,7 @@ | ||
# @goodware/mysql Release History | ||
## 3.0.8 2021-06-07 | ||
Log using tag 'db' instead of mysql | ||
## 3.0.7 2021-06-07 | ||
@@ -2,0 +8,0 @@ |
{ | ||
"name": "@goodware/mysql", | ||
"version": "3.0.7", | ||
"version": "3.0.8", | ||
"description": "A mysql2-based connection helper", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
/* eslint-disable no-console */ | ||
const MySqlConnector = require('../index'); | ||
const config = require('./config.js'); | ||
const config = require('./config'); | ||
@@ -5,0 +5,0 @@ class Logger { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1514849
1365