updates
This commit is contained in:
parent
e913c7018b
commit
d0a64858ec
@ -12,6 +12,7 @@ const updateDb = require("./updateDb");
|
|||||||
* Add a db Entry Function
|
* Add a db Entry Function
|
||||||
* ==============================================================================
|
* ==============================================================================
|
||||||
* @description Description
|
* @description Description
|
||||||
|
* @async
|
||||||
*
|
*
|
||||||
* @param {object} params - An object containing the function parameters.
|
* @param {object} params - An object containing the function parameters.
|
||||||
* @param {string} params.dbFullName - Database full name
|
* @param {string} params.dbFullName - Database full name
|
||||||
@ -27,7 +28,7 @@ const updateDb = require("./updateDb");
|
|||||||
* @param {string?} params.encryptionKey - Encryption key
|
* @param {string?} params.encryptionKey - Encryption key
|
||||||
* @param {string?} params.encryptionSalt - Encryption salt
|
* @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 }) {
|
module.exports = async function add({ dbFullName, tableName, data, tableSchema, duplicateColumnName, duplicateColumnValue, update, dbHost, dbPassword, dbUsername, encryptionKey, encryptionSalt }) {
|
||||||
/**
|
/**
|
||||||
|
@ -7,6 +7,7 @@ const handler = require("../utils/handler");
|
|||||||
* Delete DB Entry Function
|
* Delete DB Entry Function
|
||||||
* ==============================================================================
|
* ==============================================================================
|
||||||
* @description Description
|
* @description Description
|
||||||
|
* @async
|
||||||
*
|
*
|
||||||
* @param {object} params - An object containing the function parameters.
|
* @param {object} params - An object containing the function parameters.
|
||||||
* @param {string} params.dbFullName - Database full name
|
* @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.encryptionKey - Encryption key
|
||||||
* @param {string?} params.encryptionSalt - Encryption salt
|
* @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 }) {
|
module.exports = async function deleteDb({ dbFullName, tableName, tableSchema, identifierColumnName, identifierValue, dbHost, dbPassword, dbUsername, encryptionKey, encryptionSalt }) {
|
||||||
try {
|
try {
|
||||||
|
@ -8,6 +8,7 @@ const handler = require("../utils/handler");
|
|||||||
* RAW Query DB Function
|
* RAW Query DB Function
|
||||||
* ==============================================================================
|
* ==============================================================================
|
||||||
* @description Description
|
* @description Description
|
||||||
|
* @async
|
||||||
*
|
*
|
||||||
* @param {object} params - An object containing the function parameters.
|
* @param {object} params - An object containing the function parameters.
|
||||||
* @param {string} params.dbFullName - Database full name
|
* @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.dbUsername - Database username
|
||||||
* @param {string?} params.query - Query string
|
* @param {string?} params.query - Query string
|
||||||
*
|
*
|
||||||
* @returns {object}
|
* @returns {Promise<object|null>}
|
||||||
*/
|
*/
|
||||||
module.exports = async function query({ dbFullName, dbHost, dbPassword, dbUsername, query }) {
|
module.exports = async function query({ dbFullName, dbHost, dbPassword, dbUsername, query }) {
|
||||||
/**
|
/**
|
||||||
|
@ -7,6 +7,7 @@ const handler = require("../utils/handler");
|
|||||||
* Update DB Function
|
* Update DB Function
|
||||||
* ==============================================================================
|
* ==============================================================================
|
||||||
* @description Description
|
* @description Description
|
||||||
|
* @async
|
||||||
*
|
*
|
||||||
* @param {object} params - An object containing the function parameters.
|
* @param {object} params - An object containing the function parameters.
|
||||||
* @param {string} params.dbFullName - Database full name
|
* @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.encryptionKey - Encryption key
|
||||||
* @param {string?} params.encryptionSalt - Encryption salt
|
* @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 }) {
|
module.exports = async function updateDb({ dbFullName, tableName, data, tableSchema, identifierColumnName, identifierValue, dbHost, dbPassword, dbUsername, encryptionKey, encryptionSalt }) {
|
||||||
/**
|
/**
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "datasquirel",
|
"name": "datasquirel",
|
||||||
"version": "1.1.64",
|
"version": "1.1.65",
|
||||||
"description": "Cloud-based SQL data management tool",
|
"description": "Cloud-based SQL data management tool",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
Loading…
Reference in New Issue
Block a user