This commit is contained in:
Benjamin Toby
2025-06-04 08:44:33 +01:00
parent 761348de08
commit 881128fcea
5 changed files with 8 additions and 1 deletions
@@ -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"
+1
View File
@@ -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;