This commit is contained in:
Tben
2023-08-13 14:00:04 +01:00
parent 98c4c17eb3
commit 43287b0329
25 changed files with 2106 additions and 230 deletions
@@ -10,7 +10,7 @@
*
* @returns {string | null}
*/
module.exports = function camelJoinedtoCamelSpace(text) {
function camelJoinedtoCamelSpace(text) {
if (!text?.match(/./)) {
return "";
}
@@ -49,4 +49,6 @@ module.exports = function camelJoinedtoCamelSpace(text) {
} else {
return null;
}
};
}
module.exports = camelJoinedtoCamelSpace;
+3 -9
View File
@@ -1,7 +1,6 @@
// @ts-check
const fs = require("fs");
const mysql = require("mysql");
const parseDbResults = require("./parseDbResults");
const dbHandler = require("./dbHandler");
@@ -22,14 +21,9 @@ module.exports = async function varDatabaseDbHandler({ queryString, queryValuesA
*
* @description Create Connection
*/
const connection = mysql.createConnection({
host: process.env.DSQL_SOCKET_HOST,
user: process.env.DSQL_SOCKET_USER,
password: process.env.DSQL_SOCKET_PASS || "",
database: process.env.DSQL_SOCKET_DB_NAME,
charset: "utf8mb4",
port: parseInt(process.env.DSQL_SOCKET_DB_NAME || "") || undefined,
});
const encryptionKey = process.env.DSQL_ENCRYPTION_KEY || "";
const encryptionSalt = process.env.DSQL_ENCRYPTION_SALT || "";
/**
* Declare variables