@budibase/backend-core 2.22.19 → 2.23.1
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 +11 -6
- 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/db/couch/DatabaseImpl.d.ts +2 -2
- package/dist/src/db/couch/DatabaseImpl.js +5 -2
- package/dist/src/db/couch/DatabaseImpl.js.map +1 -1
- package/dist/src/db/instrumentation.d.ts +2 -2
- package/dist/src/db/instrumentation.js +2 -2
- package/dist/src/db/instrumentation.js.map +1 -1
- package/dist/tests/core/utilities/testContainerUtils.js +5 -0
- package/dist/tests/core/utilities/testContainerUtils.js.map +1 -1
- package/package.json +4 -4
- package/src/db/couch/DatabaseImpl.ts +9 -2
- package/src/db/instrumentation.ts +6 -2
- package/tests/core/utilities/testContainerUtils.ts +6 -0
package/dist/index.js
CHANGED
|
@@ -55003,7 +55003,8 @@ var allowDisplayColumnByType = {
|
|
|
55003
55003
|
["bigint" /* BIGINT */]: true,
|
|
55004
55004
|
["boolean" /* BOOLEAN */]: false,
|
|
55005
55005
|
["array" /* ARRAY */]: false,
|
|
55006
|
-
["attachment" /*
|
|
55006
|
+
["attachment" /* ATTACHMENTS */]: false,
|
|
55007
|
+
["attachment_single" /* ATTACHMENT_SINGLE */]: false,
|
|
55007
55008
|
["link" /* LINK */]: false,
|
|
55008
55009
|
["json" /* JSON */]: false,
|
|
55009
55010
|
["bb_reference" /* BB_REFERENCE */]: false
|
|
@@ -55021,7 +55022,8 @@ var allowSortColumnByType = {
|
|
|
55021
55022
|
["boolean" /* BOOLEAN */]: true,
|
|
55022
55023
|
["json" /* JSON */]: true,
|
|
55023
55024
|
["formula" /* FORMULA */]: false,
|
|
55024
|
-
["attachment" /*
|
|
55025
|
+
["attachment" /* ATTACHMENTS */]: false,
|
|
55026
|
+
["attachment_single" /* ATTACHMENT_SINGLE */]: false,
|
|
55025
55027
|
["array" /* ARRAY */]: false,
|
|
55026
55028
|
["link" /* LINK */]: false,
|
|
55027
55029
|
["bb_reference" /* BB_REFERENCE */]: false
|
|
@@ -55700,10 +55702,10 @@ var DDInstrumentedDatabase = class {
|
|
|
55700
55702
|
return this.db.getIndexes(...args);
|
|
55701
55703
|
});
|
|
55702
55704
|
}
|
|
55703
|
-
sql(sql) {
|
|
55705
|
+
sql(sql, parameters) {
|
|
55704
55706
|
return import_dd_trace.default.trace("db.sql", (span) => {
|
|
55705
55707
|
span?.addTags({ db_name: this.name });
|
|
55706
|
-
return this.db.sql(sql);
|
|
55708
|
+
return this.db.sql(sql, parameters);
|
|
55707
55709
|
});
|
|
55708
55710
|
}
|
|
55709
55711
|
};
|
|
@@ -55889,14 +55891,17 @@ var DatabaseImpl = class _DatabaseImpl {
|
|
|
55889
55891
|
return () => db.list(params2);
|
|
55890
55892
|
});
|
|
55891
55893
|
}
|
|
55892
|
-
async sql(sql) {
|
|
55894
|
+
async sql(sql, parameters) {
|
|
55893
55895
|
const dbName = this.name;
|
|
55894
55896
|
const url = `/${dbName}/${SQLITE_DESIGN_DOC_ID}`;
|
|
55895
55897
|
const response = await directCouchUrlCall({
|
|
55896
55898
|
url: `${this.couchInfo.sqlUrl}/${url}`,
|
|
55897
55899
|
method: "POST",
|
|
55898
55900
|
cookie: this.couchInfo.cookie,
|
|
55899
|
-
body:
|
|
55901
|
+
body: {
|
|
55902
|
+
query: sql,
|
|
55903
|
+
args: parameters
|
|
55904
|
+
}
|
|
55900
55905
|
});
|
|
55901
55906
|
if (response.status > 300) {
|
|
55902
55907
|
throw new Error(await response.text());
|