@budibase/backend-core 2.29.22 → 2.29.23
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/index.js +15 -0
- package/dist/index.js.map +2 -2
- package/dist/index.js.meta.json +1 -1
- package/dist/package.json +4 -4
- package/dist/plugins.js.meta.json +1 -1
- package/dist/src/sql/sql.js +6 -0
- package/dist/src/sql/sql.js.map +1 -1
- package/dist/src/sql/utils.d.ts +1 -0
- package/dist/src/sql/utils.js +5 -0
- package/dist/src/sql/utils.js.map +1 -1
- package/dist/tests/core/utilities/structures/koa.js.map +1 -1
- package/package.json +4 -4
- package/src/sql/sql.ts +10 -0
- package/src/sql/utils.ts +5 -0
- package/tests/core/utilities/structures/koa.ts +1 -1
package/dist/index.js
CHANGED
|
@@ -56566,6 +56566,7 @@ __export(utils_exports3, {
|
|
|
56566
56566
|
isRowId: () => isRowId,
|
|
56567
56567
|
isValidFilter: () => isValidFilter,
|
|
56568
56568
|
isValidISODateString: () => isValidISODateString,
|
|
56569
|
+
isValidTime: () => isValidTime,
|
|
56569
56570
|
sqlLog: () => sqlLog
|
|
56570
56571
|
});
|
|
56571
56572
|
|
|
@@ -59437,6 +59438,7 @@ var DOUBLE_SEPARATOR = `${SEPARATOR}${SEPARATOR}`;
|
|
|
59437
59438
|
var ROW_ID_REGEX = /^\[.*]$/g;
|
|
59438
59439
|
var ENCODED_SPACE = encodeURIComponent(" ");
|
|
59439
59440
|
var ISO_DATE_REGEX = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}.\d{3}Z$/;
|
|
59441
|
+
var TIME_REGEX = /^(?:\d{2}:)?(?:\d{2}:)(?:\d{2})$/;
|
|
59440
59442
|
function isExternalTableID(tableId) {
|
|
59441
59443
|
return tableId.startsWith("datasource" /* DATASOURCE */ + SEPARATOR);
|
|
59442
59444
|
}
|
|
@@ -59543,6 +59545,9 @@ function isValidISODateString(str) {
|
|
|
59543
59545
|
function isValidFilter(value) {
|
|
59544
59546
|
return value != null && value !== "";
|
|
59545
59547
|
}
|
|
59548
|
+
function isValidTime(value) {
|
|
59549
|
+
return TIME_REGEX.test(value);
|
|
59550
|
+
}
|
|
59546
59551
|
function sqlLog(client, query, values2) {
|
|
59547
59552
|
if (!environment_default.SQL_LOGGING_ENABLE) {
|
|
59548
59553
|
return;
|
|
@@ -67920,6 +67925,11 @@ var InternalBuilder = class {
|
|
|
67920
67925
|
)} = ? THEN 1 ELSE 0 END = 1`,
|
|
67921
67926
|
[value]
|
|
67922
67927
|
);
|
|
67928
|
+
} else if (this.client === "oracledb" /* ORACLE */) {
|
|
67929
|
+
query = query[fnc](
|
|
67930
|
+
`COALESCE(${quotedIdentifier(this.client, key)}, -1) = ?`,
|
|
67931
|
+
[value]
|
|
67932
|
+
);
|
|
67923
67933
|
} else {
|
|
67924
67934
|
query = query[fnc](
|
|
67925
67935
|
`COALESCE(${quotedIdentifier(this.client, key)} = ?, FALSE)`,
|
|
@@ -67939,6 +67949,11 @@ var InternalBuilder = class {
|
|
|
67939
67949
|
)} = ? THEN 1 ELSE 0 END = 0`,
|
|
67940
67950
|
[value]
|
|
67941
67951
|
);
|
|
67952
|
+
} else if (this.client === "oracledb" /* ORACLE */) {
|
|
67953
|
+
query = query[fnc](
|
|
67954
|
+
`COALESCE(${quotedIdentifier(this.client, key)}, -1) != ?`,
|
|
67955
|
+
[value]
|
|
67956
|
+
);
|
|
67942
67957
|
} else {
|
|
67943
67958
|
query = query[fnc](
|
|
67944
67959
|
`COALESCE(${quotedIdentifier(this.client, key)} != ?, TRUE)`,
|