Updates
This commit is contained in:
parent
af2749a922
commit
5847bd34ab
@ -25,7 +25,7 @@ function sqlInsertGenerator({ tableName, data, dbFullName, }) {
|
|||||||
const value = item[ky];
|
const value = item[ky];
|
||||||
const finalValue = typeof value == "string" ||
|
const finalValue = typeof value == "string" ||
|
||||||
typeof value == "number"
|
typeof value == "number"
|
||||||
? String(value)
|
? value
|
||||||
: value
|
: value
|
||||||
? String(value().value)
|
? String(value().value)
|
||||||
: null;
|
: null;
|
||||||
|
|||||||
2
dist/package-shared/types/index.d.ts
vendored
2
dist/package-shared/types/index.d.ts
vendored
@ -2490,7 +2490,7 @@ export interface GithubUserPayload {
|
|||||||
}
|
}
|
||||||
export interface SQLInsertGenReturn {
|
export interface SQLInsertGenReturn {
|
||||||
query: string;
|
query: string;
|
||||||
values: string[];
|
values: (string | number)[];
|
||||||
}
|
}
|
||||||
export type SQLInsertGenDataFn = () => {
|
export type SQLInsertGenDataFn = () => {
|
||||||
placeholder: string;
|
placeholder: string;
|
||||||
|
|||||||
@ -24,7 +24,7 @@ export default function sqlInsertGenerator({
|
|||||||
});
|
});
|
||||||
|
|
||||||
let queryBatches: string[] = [];
|
let queryBatches: string[] = [];
|
||||||
let queryValues: string[] = [];
|
let queryValues: (string | number)[] = [];
|
||||||
|
|
||||||
data.forEach((item) => {
|
data.forEach((item) => {
|
||||||
queryBatches.push(
|
queryBatches.push(
|
||||||
@ -35,7 +35,7 @@ export default function sqlInsertGenerator({
|
|||||||
const finalValue =
|
const finalValue =
|
||||||
typeof value == "string" ||
|
typeof value == "string" ||
|
||||||
typeof value == "number"
|
typeof value == "number"
|
||||||
? String(value)
|
? value
|
||||||
: value
|
: value
|
||||||
? String(value().value)
|
? String(value().value)
|
||||||
: null;
|
: null;
|
||||||
|
|||||||
@ -3183,7 +3183,7 @@ export interface GithubUserPayload {
|
|||||||
|
|
||||||
export interface SQLInsertGenReturn {
|
export interface SQLInsertGenReturn {
|
||||||
query: string;
|
query: string;
|
||||||
values: string[];
|
values: (string | number)[];
|
||||||
}
|
}
|
||||||
|
|
||||||
export type SQLInsertGenDataFn = () => {
|
export type SQLInsertGenDataFn = () => {
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@moduletrace/datasquirel",
|
"name": "@moduletrace/datasquirel",
|
||||||
"version": "5.7.45",
|
"version": "5.7.46",
|
||||||
"description": "Cloud-based SQL data management tool",
|
"description": "Cloud-based SQL data management tool",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
"bin": {
|
"bin": {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user