updates
This commit is contained in:
parent
aa85d58daa
commit
b43eb1f990
@ -44,8 +44,6 @@ module.exports = async function add({ dbFullName, tableName, data, tableSchema,
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
if (duplicateColumnName && typeof duplicateColumnName === "string") {
|
if (duplicateColumnName && typeof duplicateColumnName === "string") {
|
||||||
console.log("duplicateColumnName", duplicateColumnName);
|
|
||||||
|
|
||||||
const duplicateValue = await handler({
|
const duplicateValue = await handler({
|
||||||
queryString: `SELECT * FROM \`${tableName}\` WHERE \`${duplicateColumnName}\`=?`,
|
queryString: `SELECT * FROM \`${tableName}\` WHERE \`${duplicateColumnName}\`=?`,
|
||||||
queryValuesArray: [duplicateColumnValue],
|
queryValuesArray: [duplicateColumnValue],
|
||||||
@ -147,8 +145,6 @@ module.exports = async function add({ dbFullName, tableName, data, tableSchema,
|
|||||||
tableSchema,
|
tableSchema,
|
||||||
});
|
});
|
||||||
|
|
||||||
console.log("DSQL: New insert =>", newInsert);
|
|
||||||
|
|
||||||
////////////////////////////////////////
|
////////////////////////////////////////
|
||||||
////////////////////////////////////////
|
////////////////////////////////////////
|
||||||
////////////////////////////////////////
|
////////////////////////////////////////
|
||||||
|
2
index.js
2
index.js
@ -15,7 +15,7 @@ const reAuthUser = require("./users/reauth-user");
|
|||||||
const getUser = require("./users/get-user");
|
const getUser = require("./users/get-user");
|
||||||
const loginWithGoogle = require("./users/social/google-auth");
|
const loginWithGoogle = require("./users/social/google-auth");
|
||||||
const sanitizeSql = require("./utils/functions/sanitizeSql");
|
const sanitizeSql = require("./utils/functions/sanitizeSql");
|
||||||
const dsqlEngine = require("./engine");
|
const dsqlEngine = require("./engine/index");
|
||||||
|
|
||||||
/** ****************************************************************************** */
|
/** ****************************************************************************** */
|
||||||
/** ****************************************************************************** */
|
/** ****************************************************************************** */
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "datasquirel",
|
"name": "datasquirel",
|
||||||
"version": "1.1.69",
|
"version": "1.1.70",
|
||||||
"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