datasquirel/package-shared/functions/dsql/sql/sql-delete-generator.d.ts

25 lines
562 B
TypeScript
Raw Permalink Normal View History

2024-11-12 18:46:41 +00:00
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[];
};