updates
This commit is contained in:
parent
e825506757
commit
7ff4ba1396
@ -62,6 +62,11 @@ async function query({ dbFullName, dbHost, dbPassword, dbUsername, query, values
|
||||
* Clean up
|
||||
*/
|
||||
await mysql.end();
|
||||
|
||||
/**
|
||||
* Return error
|
||||
*/
|
||||
return error.message;
|
||||
}
|
||||
|
||||
////////////////////////////////////////
|
||||
|
@ -67,6 +67,11 @@ async function dsqlDbHandler({ queryString, queryValuesArray, database, tableSch
|
||||
* Clean up
|
||||
*/
|
||||
await mysql.end();
|
||||
|
||||
/**
|
||||
* Return error
|
||||
*/
|
||||
return error.message;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -87,7 +92,7 @@ async function dsqlDbHandler({ queryString, queryValuesArray, database, tableSch
|
||||
return JSON.parse(JSON.stringify(results));
|
||||
} else {
|
||||
console.log("\x1b[31mDSQL Database Handler No results returned\x1b[0m =>", results);
|
||||
return null;
|
||||
return results;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "datasquirel",
|
||||
"version": "1.1.79",
|
||||
"version": "1.1.80",
|
||||
"description": "Cloud-based SQL data management tool",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
|
Loading…
Reference in New Issue
Block a user