This commit is contained in:
Benjamin Toby
2025-08-26 11:37:28 +01:00
parent 82bea3efd0
commit 2336b71703
5 changed files with 12 additions and 4 deletions
@@ -45,10 +45,15 @@ export default function generateTypeDefinition({
if (schemaType.dataType?.match(/int/i)) {
return "number";
}
if (schemaType.dataType?.match(/text|varchar|timestamp/i)) {
return "string";
}
if (schemaType.dataType?.match(/boolean/i)) {
return "boolean";
}
return "string";
}
@@ -42,7 +42,7 @@ export default function sqlGenOperatorGen({
};
} else if (equality == "REGEXP") {
return {
str: `LOWER(${fieldName}) REGEXP LOWER(?')`,
str: `LOWER(${fieldName}) REGEXP LOWER(?)`,
param: value,
};
} else if (equality == "FULLTEXT") {