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

25 lines
566 B
TypeScript
Raw Normal View History

2024-11-12 11:01:39 +00:00
export = sqlInsertGenerator;
/**
2024-12-06 10:44:26 +00:00
* @typedef {object} SQLInsertGenReturn
2024-11-12 11:01:39 +00:00
* @property {string} query
* @property {string[]} values
*/
/**
* @param {object} param0
* @param {any[]} param0.data
* @param {string} param0.tableName
*
2024-12-06 10:44:26 +00:00
* @return {SQLInsertGenReturn | undefined}
2024-11-12 11:01:39 +00:00
*/
declare function sqlInsertGenerator({ tableName, data }: {
data: any[];
tableName: string;
2024-12-06 10:44:26 +00:00
}): SQLInsertGenReturn | undefined;
2024-11-12 11:01:39 +00:00
declare namespace sqlInsertGenerator {
2024-12-06 10:44:26 +00:00
export { SQLInsertGenReturn };
2024-11-12 11:01:39 +00:00
}
2024-12-06 10:44:26 +00:00
type SQLInsertGenReturn = {
2024-11-12 11:01:39 +00:00
query: string;
values: string[];
};