From d0a64858ec5bfd8ffdba872699b5923222339a53 Mon Sep 17 00:00:00 2001 From: Tben Date: Fri, 7 Jul 2023 15:52:24 +0100 Subject: [PATCH] updates --- engine/db/add.js | 3 ++- engine/db/deleteDb.js | 3 ++- engine/db/query.js | 3 ++- engine/db/updateDb.js | 3 ++- package.json | 2 +- 5 files changed, 9 insertions(+), 5 deletions(-) diff --git a/engine/db/add.js b/engine/db/add.js index 8700c7a..b3ed5f2 100644 --- a/engine/db/add.js +++ b/engine/db/add.js @@ -12,6 +12,7 @@ const updateDb = require("./updateDb"); * Add a db Entry Function * ============================================================================== * @description Description + * @async * * @param {object} params - An object containing the function parameters. * @param {string} params.dbFullName - Database full name @@ -27,7 +28,7 @@ const updateDb = require("./updateDb"); * @param {string?} params.encryptionKey - Encryption key * @param {string?} params.encryptionSalt - Encryption salt * - * @returns {object} + * @returns {Promise} */ module.exports = async function add({ dbFullName, tableName, data, tableSchema, duplicateColumnName, duplicateColumnValue, update, dbHost, dbPassword, dbUsername, encryptionKey, encryptionSalt }) { /** diff --git a/engine/db/deleteDb.js b/engine/db/deleteDb.js index 231e982..b454785 100644 --- a/engine/db/deleteDb.js +++ b/engine/db/deleteDb.js @@ -7,6 +7,7 @@ const handler = require("../utils/handler"); * Delete DB Entry Function * ============================================================================== * @description Description + * @async * * @param {object} params - An object containing the function parameters. * @param {string} params.dbFullName - Database full name @@ -21,7 +22,7 @@ const handler = require("../utils/handler"); * @param {string?} params.encryptionKey - Encryption key * @param {string?} params.encryptionSalt - Encryption salt * - * @returns {object} + * @returns {Promise} */ module.exports = async function deleteDb({ dbFullName, tableName, tableSchema, identifierColumnName, identifierValue, dbHost, dbPassword, dbUsername, encryptionKey, encryptionSalt }) { try { diff --git a/engine/db/query.js b/engine/db/query.js index 98e456a..3940b2f 100644 --- a/engine/db/query.js +++ b/engine/db/query.js @@ -8,6 +8,7 @@ const handler = require("../utils/handler"); * RAW Query DB Function * ============================================================================== * @description Description + * @async * * @param {object} params - An object containing the function parameters. * @param {string} params.dbFullName - Database full name @@ -16,7 +17,7 @@ const handler = require("../utils/handler"); * @param {string?} params.dbUsername - Database username * @param {string?} params.query - Query string * - * @returns {object} + * @returns {Promise} */ module.exports = async function query({ dbFullName, dbHost, dbPassword, dbUsername, query }) { /** diff --git a/engine/db/updateDb.js b/engine/db/updateDb.js index 1ffeabb..7c41a15 100644 --- a/engine/db/updateDb.js +++ b/engine/db/updateDb.js @@ -7,6 +7,7 @@ const handler = require("../utils/handler"); * Update DB Function * ============================================================================== * @description Description + * @async * * @param {object} params - An object containing the function parameters. * @param {string} params.dbFullName - Database full name @@ -22,7 +23,7 @@ const handler = require("../utils/handler"); * @param {string?} params.encryptionKey - Encryption key * @param {string?} params.encryptionSalt - Encryption salt * - * @returns {object} + * @returns {Promise} */ module.exports = async function updateDb({ dbFullName, tableName, data, tableSchema, identifierColumnName, identifierValue, dbHost, dbPassword, dbUsername, encryptionKey, encryptionSalt }) { /** diff --git a/package.json b/package.json index 7ec43fa..7e1ebe1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "datasquirel", - "version": "1.1.64", + "version": "1.1.65", "description": "Cloud-based SQL data management tool", "main": "index.js", "scripts": {