This commit is contained in:
Benjamin Toby 2026-02-11 07:42:34 +01:00
parent af2749a922
commit 5847bd34ab
5 changed files with 6 additions and 6 deletions

View File

@ -25,7 +25,7 @@ function sqlInsertGenerator({ tableName, data, dbFullName, }) {
const value = item[ky];
const finalValue = typeof value == "string" ||
typeof value == "number"
? String(value)
? value
: value
? String(value().value)
: null;

View File

@ -2490,7 +2490,7 @@ export interface GithubUserPayload {
}
export interface SQLInsertGenReturn {
query: string;
values: string[];
values: (string | number)[];
}
export type SQLInsertGenDataFn = () => {
placeholder: string;

View File

@ -24,7 +24,7 @@ export default function sqlInsertGenerator({
});
let queryBatches: string[] = [];
let queryValues: string[] = [];
let queryValues: (string | number)[] = [];
data.forEach((item) => {
queryBatches.push(
@ -35,7 +35,7 @@ export default function sqlInsertGenerator({
const finalValue =
typeof value == "string" ||
typeof value == "number"
? String(value)
? value
: value
? String(value().value)
: null;

View File

@ -3183,7 +3183,7 @@ export interface GithubUserPayload {
export interface SQLInsertGenReturn {
query: string;
values: string[];
values: (string | number)[];
}
export type SQLInsertGenDataFn = () => {

View File

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