bun-query-builder 0.2.11 → 0.2.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bin/cli.js +5 -2
- package/dist/src/index.js +4 -1
- package/package.json +1 -1
package/dist/bin/cli.js
CHANGED
|
@@ -18168,7 +18168,10 @@ class MySQLDriver {
|
|
|
18168
18168
|
if (rawSqlExpressions.includes(upperDv)) {
|
|
18169
18169
|
return `default ${upperDv}`;
|
|
18170
18170
|
}
|
|
18171
|
-
|
|
18171
|
+
const literal = `'${dv.replace(/'/g, "''")}'`;
|
|
18172
|
+
if (column.type === "text" || column.type === "json" || column.type === "enum" && !column.enumValues?.length)
|
|
18173
|
+
return `default (${literal})`;
|
|
18174
|
+
return `default ${literal}`;
|
|
18172
18175
|
} else if (typeof dv === "number" || typeof dv === "bigint") {
|
|
18173
18176
|
return `default ${dv}`;
|
|
18174
18177
|
} else if (typeof dv === "boolean") {
|
|
@@ -31539,7 +31542,7 @@ function getPrefix() {
|
|
|
31539
31542
|
}
|
|
31540
31543
|
var prefix = getPrefix();
|
|
31541
31544
|
// package.json
|
|
31542
|
-
var version2 = "0.2.
|
|
31545
|
+
var version2 = "0.2.13";
|
|
31543
31546
|
|
|
31544
31547
|
// bin/cli.ts
|
|
31545
31548
|
init_actions();
|
package/dist/src/index.js
CHANGED
|
@@ -18167,7 +18167,10 @@ class MySQLDriver {
|
|
|
18167
18167
|
if (rawSqlExpressions.includes(upperDv)) {
|
|
18168
18168
|
return `default ${upperDv}`;
|
|
18169
18169
|
}
|
|
18170
|
-
|
|
18170
|
+
const literal = `'${dv.replace(/'/g, "''")}'`;
|
|
18171
|
+
if (column.type === "text" || column.type === "json" || column.type === "enum" && !column.enumValues?.length)
|
|
18172
|
+
return `default (${literal})`;
|
|
18173
|
+
return `default ${literal}`;
|
|
18171
18174
|
} else if (typeof dv === "number" || typeof dv === "bigint") {
|
|
18172
18175
|
return `default ${dv}`;
|
|
18173
18176
|
} else if (typeof dv === "boolean") {
|
package/package.json
CHANGED