datasquirel/package-shared/functions/dsql/sql/sql-insert-generator.d.ts
Benjamin Toby c49513c189 Updates
2024-12-06 11:44:26 +01:00

25 lines
566 B
TypeScript

export = sqlInsertGenerator;
/**
* @typedef {object} SQLInsertGenReturn
* @property {string} query
* @property {string[]} values
*/
/**
* @param {object} param0
* @param {any[]} param0.data
* @param {string} param0.tableName
*
* @return {SQLInsertGenReturn | undefined}
*/
declare function sqlInsertGenerator({ tableName, data }: {
data: any[];
tableName: string;
}): SQLInsertGenReturn | undefined;
declare namespace sqlInsertGenerator {
export { SQLInsertGenReturn };
}
type SQLInsertGenReturn = {
query: string;
values: string[];
};