Minor Updates
This commit is contained in:
parent
eb2bc3a25f
commit
a1e7439958
24
functions/sql/sql-delete-generator.d.ts
vendored
Normal file
24
functions/sql/sql-delete-generator.d.ts
vendored
Normal 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
2
index.d.ts
vendored
@ -27,6 +27,7 @@ import datasquirelClient = require("./client");
|
|||||||
export namespace sql {
|
export namespace sql {
|
||||||
export { sqlGenerator };
|
export { sqlGenerator };
|
||||||
export { sqlInsertGenerator };
|
export { sqlInsertGenerator };
|
||||||
|
export { sqlDeleteGenerator };
|
||||||
}
|
}
|
||||||
import uploadImage = require("./utils/upload-image");
|
import uploadImage = require("./utils/upload-image");
|
||||||
import uploadFile = require("./utils/upload-file");
|
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 loginWithGithub = require("./users/social/github-auth");
|
||||||
import sqlGenerator = require("./functions/sql/sql-generator");
|
import sqlGenerator = require("./functions/sql/sql-generator");
|
||||||
import sqlInsertGenerator = require("./functions/sql/sql-insert-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 };
|
export { get, post, getSchema, sanitizeSql, datasquirelClient as client };
|
||||||
|
2
index.js
2
index.js
@ -30,6 +30,7 @@ const sanitizeSql = require("./utils/functions/sanitizeSql");
|
|||||||
const datasquirelClient = require("./client");
|
const datasquirelClient = require("./client");
|
||||||
const sqlGenerator = require("./functions/sql/sql-generator");
|
const sqlGenerator = require("./functions/sql/sql-generator");
|
||||||
const sqlInsertGenerator = require("./functions/sql/sql-insert-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 = {
|
const sql = {
|
||||||
sqlGenerator,
|
sqlGenerator,
|
||||||
sqlInsertGenerator,
|
sqlInsertGenerator,
|
||||||
|
sqlDeleteGenerator,
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@moduletrace/datasquirel",
|
"name": "@moduletrace/datasquirel",
|
||||||
"version": "2.6.1",
|
"version": "2.6.2",
|
||||||
"description": "Cloud-based SQL data management tool",
|
"description": "Cloud-based SQL data management tool",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"bin": {
|
"bin": {
|
||||||
|
Loading…
Reference in New Issue
Block a user