This commit is contained in:
Tben 2023-07-07 15:52:24 +01:00
parent e913c7018b
commit d0a64858ec
5 changed files with 9 additions and 5 deletions

View File

@ -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<object|null>}
*/
module.exports = async function add({ dbFullName, tableName, data, tableSchema, duplicateColumnName, duplicateColumnValue, update, dbHost, dbPassword, dbUsername, encryptionKey, encryptionSalt }) {
/**

View File

@ -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<object|null>}
*/
module.exports = async function deleteDb({ dbFullName, tableName, tableSchema, identifierColumnName, identifierValue, dbHost, dbPassword, dbUsername, encryptionKey, encryptionSalt }) {
try {

View File

@ -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<object|null>}
*/
module.exports = async function query({ dbFullName, dbHost, dbPassword, dbUsername, query }) {
/**

View File

@ -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<object|null>}
*/
module.exports = async function updateDb({ dbFullName, tableName, data, tableSchema, identifierColumnName, identifierValue, dbHost, dbPassword, dbUsername, encryptionKey, encryptionSalt }) {
/**

View File

@ -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": {