Minor Updates

This commit is contained in:
Benjamin Toby 2024-11-12 19:46:41 +01:00
parent eb2bc3a25f
commit a1e7439958
4 changed files with 29 additions and 1 deletions

24
functions/sql/sql-delete-generator.d.ts vendored Normal file
View File

@ -0,0 +1,24 @@
export = sqlDeleteGenerator;
/**
* @typedef {object} SQLDeleteGenReturn
* @property {string} query
* @property {string[]} values
*/
/**
* @param {object} param0
* @param {any} param0.data
* @param {string} param0.tableName
*
* @return {SQLDeleteGenReturn | undefined}
*/
declare function sqlDeleteGenerator({ tableName, data }: {
data: any;
tableName: string;
}): SQLDeleteGenReturn | undefined;
declare namespace sqlDeleteGenerator {
export { SQLDeleteGenReturn };
}
type SQLDeleteGenReturn = {
query: string;
values: string[];
};

2
index.d.ts vendored
View File

@ -27,6 +27,7 @@ import datasquirelClient = require("./client");
export namespace sql {
export { sqlGenerator };
export { sqlInsertGenerator };
export { sqlDeleteGenerator };
}
import uploadImage = require("./utils/upload-image");
import uploadFile = require("./utils/upload-file");
@ -45,4 +46,5 @@ import loginWithGoogle = require("./users/social/google-auth");
import loginWithGithub = require("./users/social/github-auth");
import sqlGenerator = require("./functions/sql/sql-generator");
import sqlInsertGenerator = require("./functions/sql/sql-insert-generator");
import sqlDeleteGenerator = require("./functions/sql/sql-delete-generator");
export { get, post, getSchema, sanitizeSql, datasquirelClient as client };

View File

@ -30,6 +30,7 @@ const sanitizeSql = require("./utils/functions/sanitizeSql");
const datasquirelClient = require("./client");
const sqlGenerator = require("./functions/sql/sql-generator");
const sqlInsertGenerator = require("./functions/sql/sql-insert-generator");
const sqlDeleteGenerator = require("./functions/sql/sql-delete-generator");
////////////////////////////////////////
////////////////////////////////////////
@ -70,6 +71,7 @@ const media = {
const sql = {
sqlGenerator,
sqlInsertGenerator,
sqlDeleteGenerator,
};
/**

View File

@ -1,6 +1,6 @@
{
"name": "@moduletrace/datasquirel",
"version": "2.6.1",
"version": "2.6.2",
"description": "Cloud-based SQL data management tool",
"main": "index.js",
"bin": {