Update insert value types. Allow buffers

This commit is contained in:
2026-04-05 07:37:08 +01:00
parent b3bd5866e6
commit 88fff6c507
5 changed files with 30 additions and 15 deletions
+5 -3
View File
@@ -23,9 +23,11 @@ export default function sqlInsertGenerator({ tableName, data, dbFullName, }) {
const finalValue = typeof value == "string" ||
typeof value == "number"
? value
: value
? String(value().value)
: null;
: typeof value == "function"
? value().value
: value
? value
: null;
if (!finalValue) {
queryValues.push("");
return "?";