Updates
This commit is contained in:
parent
97f480c208
commit
c34d256891
@ -34,6 +34,8 @@ function sqlGenerator({ tableName, genObject, dbFullName, count }) {
|
||||
queryObj.value.forEach((val) => {
|
||||
var _a;
|
||||
const valueParsed = val;
|
||||
if (!valueParsed)
|
||||
return;
|
||||
const valueString = typeof valueParsed == "string"
|
||||
? valueParsed
|
||||
: (_a = valueParsed.value) === null || _a === void 0 ? void 0 : _a.toString();
|
||||
|
2
dist/package-shared/types/index.d.ts
vendored
2
dist/package-shared/types/index.d.ts
vendored
@ -836,7 +836,7 @@ export type ServerQueryValuesObject = {
|
||||
export type ServerQueryObject<T extends object = {
|
||||
[key: string]: any;
|
||||
}, K extends string = string> = {
|
||||
value?: string | (string | ServerQueryValuesObject)[];
|
||||
value?: string | (string | ServerQueryValuesObject | undefined | null)[];
|
||||
nullValue?: boolean;
|
||||
notNullValue?: boolean;
|
||||
operator?: (typeof ServerQueryOperators)[number];
|
||||
|
@ -61,6 +61,9 @@ export default function sqlGenerator<
|
||||
const strArray: string[] = [];
|
||||
queryObj.value.forEach((val) => {
|
||||
const valueParsed = val;
|
||||
|
||||
if (!valueParsed) return;
|
||||
|
||||
const valueString =
|
||||
typeof valueParsed == "string"
|
||||
? valueParsed
|
||||
|
@ -1020,7 +1020,7 @@ export type ServerQueryObject<
|
||||
T extends object = { [key: string]: any },
|
||||
K extends string = string
|
||||
> = {
|
||||
value?: string | (string | ServerQueryValuesObject)[];
|
||||
value?: string | (string | ServerQueryValuesObject | undefined | null)[];
|
||||
nullValue?: boolean;
|
||||
notNullValue?: boolean;
|
||||
operator?: (typeof ServerQueryOperators)[number];
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@moduletrace/datasquirel",
|
||||
"version": "5.2.5",
|
||||
"version": "5.2.6",
|
||||
"description": "Cloud-based SQL data management tool",
|
||||
"main": "dist/index.js",
|
||||
"bin": {
|
||||
|
Loading…
Reference in New Issue
Block a user