@budibase/backend-core 3.2.27 → 3.2.29
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 +8 -3
- package/dist/index.js.map +2 -2
- package/dist/index.js.meta.json +1 -1
- package/dist/package.json +2 -2
- package/dist/plugins.js.meta.json +1 -1
- package/dist/src/sql/utils.d.ts +1 -0
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -18258,6 +18258,7 @@ __export(utils_exports3, {
|
|
|
18258
18258
|
breakRowIdField: () => breakRowIdField,
|
|
18259
18259
|
buildExternalTableId: () => buildExternalTableId,
|
|
18260
18260
|
convertRowId: () => convertRowId,
|
|
18261
|
+
encodeTableId: () => encodeTableId,
|
|
18261
18262
|
generateRowIdField: () => generateRowIdField,
|
|
18262
18263
|
getNativeSql: () => getNativeSql,
|
|
18263
18264
|
isExternalTable: () => isExternalTable,
|
|
@@ -21161,10 +21162,14 @@ function isExternalTable(table) {
|
|
|
21161
21162
|
return false;
|
|
21162
21163
|
}
|
|
21163
21164
|
function buildExternalTableId(datasourceId, tableName) {
|
|
21164
|
-
|
|
21165
|
-
|
|
21165
|
+
return `${datasourceId}${DOUBLE_SEPARATOR}${encodeURIComponent(tableName)}`;
|
|
21166
|
+
}
|
|
21167
|
+
function encodeTableId(tableId) {
|
|
21168
|
+
if (isExternalTableID(tableId)) {
|
|
21169
|
+
return encodeURIComponent(tableId);
|
|
21170
|
+
} else {
|
|
21171
|
+
return tableId;
|
|
21166
21172
|
}
|
|
21167
|
-
return `${datasourceId}${DOUBLE_SEPARATOR}${tableName}`;
|
|
21168
21173
|
}
|
|
21169
21174
|
function breakExternalTableId(tableId) {
|
|
21170
21175
|
const parts = tableId.split(DOUBLE_SEPARATOR);
|