Updates
This commit is contained in:
@@ -57,6 +57,8 @@ export default function sqlGenerator<
|
||||
|
||||
if (queryObj.nullValue) {
|
||||
str = `${finalFieldName} IS NULL`;
|
||||
} else if (queryObj.notNullValue) {
|
||||
str = `${finalFieldName} IS NOT NULL`;
|
||||
} else if (
|
||||
typeof queryObj.value == "string" ||
|
||||
typeof queryObj.value == "number"
|
||||
|
||||
@@ -1135,6 +1135,7 @@ export type ServerQueryParam<
|
||||
export type ServerQueryObject<T extends object = { [key: string]: any }> = {
|
||||
value?: string | string[];
|
||||
nullValue?: boolean;
|
||||
notNullValue?: boolean;
|
||||
operator?: (typeof ServerQueryOperators)[number];
|
||||
equality?: (typeof ServerQueryEqualities)[number];
|
||||
tableName?: string;
|
||||
|
||||
Reference in New Issue
Block a user