@budibase/server 1.0.207-alpha.4 → 1.0.207-alpha.7
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/builder/assets/{index.e16e5fbc.js → index.5e7a2e51.js} +157 -158
- package/builder/assets/{index.c6df2367.css → index.937e02c1.css} +1 -1
- package/builder/index.html +2 -2
- package/coverage/clover.xml +35 -27
- package/coverage/coverage-final.json +1 -1
- package/coverage/lcov-report/api/controllers/apikeys.js.html +1 -1
- package/coverage/lcov-report/api/controllers/auth.js.html +1 -1
- package/coverage/lcov-report/api/controllers/automation.js.html +1 -1
- package/coverage/lcov-report/api/controllers/backup.js.html +1 -1
- package/coverage/lcov-report/api/controllers/cloud.js.html +1 -1
- package/coverage/lcov-report/api/controllers/component.js.html +1 -1
- package/coverage/lcov-report/api/controllers/datasource.js.html +1 -1
- package/coverage/lcov-report/api/controllers/dev.js.html +1 -1
- package/coverage/lcov-report/api/controllers/index.html +1 -1
- package/coverage/lcov-report/api/controllers/integration.js.html +1 -1
- package/coverage/lcov-report/api/controllers/layout.js.html +1 -1
- package/coverage/lcov-report/api/controllers/metadata.js.html +1 -1
- package/coverage/lcov-report/api/controllers/migrations.js.html +1 -1
- package/coverage/lcov-report/api/controllers/permission.js.html +1 -1
- package/coverage/lcov-report/api/controllers/query/index.html +1 -1
- package/coverage/lcov-report/api/controllers/query/validation.js.html +1 -1
- package/coverage/lcov-report/api/controllers/role.js.html +1 -1
- package/coverage/lcov-report/api/controllers/routing.js.html +1 -1
- package/coverage/lcov-report/api/controllers/row/external.js.html +55 -10
- package/coverage/lcov-report/api/controllers/row/index.html +14 -14
- package/coverage/lcov-report/api/controllers/row/internal.js.html +1 -1
- package/coverage/lcov-report/api/controllers/row/internalSearch.js.html +1 -1
- package/coverage/lcov-report/api/controllers/row/staticFormula.js.html +1 -1
- package/coverage/lcov-report/api/controllers/row/utils.js.html +1 -1
- package/coverage/lcov-report/api/controllers/screen.js.html +1 -1
- package/coverage/lcov-report/api/controllers/script.js.html +1 -1
- package/coverage/lcov-report/api/controllers/table/bulkFormula.js.html +1 -1
- package/coverage/lcov-report/api/controllers/table/external.js.html +1 -1
- package/coverage/lcov-report/api/controllers/table/index.html +1 -1
- package/coverage/lcov-report/api/controllers/table/index.js.html +1 -1
- package/coverage/lcov-report/api/controllers/templates.js.html +1 -1
- package/coverage/lcov-report/api/controllers/user.js.html +1 -1
- package/coverage/lcov-report/api/controllers/view/exporters.js.html +1 -1
- package/coverage/lcov-report/api/controllers/view/index.html +1 -1
- package/coverage/lcov-report/api/controllers/view/index.js.html +1 -1
- package/coverage/lcov-report/api/controllers/view/utils.js.html +1 -1
- package/coverage/lcov-report/api/controllers/view/viewBuilder.js.html +1 -1
- package/coverage/lcov-report/api/controllers/webhook.js.html +1 -1
- package/coverage/lcov-report/api/index.html +1 -1
- package/coverage/lcov-report/api/index.js.html +1 -1
- package/coverage/lcov-report/api/routes/analytics.js.html +1 -1
- package/coverage/lcov-report/api/routes/apikeys.js.html +1 -1
- package/coverage/lcov-report/api/routes/auth.js.html +1 -1
- package/coverage/lcov-report/api/routes/automation.js.html +1 -1
- package/coverage/lcov-report/api/routes/backup.js.html +1 -1
- package/coverage/lcov-report/api/routes/cloud.js.html +1 -1
- package/coverage/lcov-report/api/routes/component.js.html +1 -1
- package/coverage/lcov-report/api/routes/datasource.js.html +1 -1
- package/coverage/lcov-report/api/routes/deploy.js.html +1 -1
- package/coverage/lcov-report/api/routes/dev.js.html +1 -1
- package/coverage/lcov-report/api/routes/index.html +1 -1
- package/coverage/lcov-report/api/routes/integration.js.html +1 -1
- package/coverage/lcov-report/api/routes/layout.js.html +1 -1
- package/coverage/lcov-report/api/routes/metadata.js.html +1 -1
- package/coverage/lcov-report/api/routes/migrations.js.html +1 -1
- package/coverage/lcov-report/api/routes/permission.js.html +1 -1
- package/coverage/lcov-report/api/routes/query.js.html +1 -1
- package/coverage/lcov-report/api/routes/role.js.html +1 -1
- package/coverage/lcov-report/api/routes/routing.js.html +1 -1
- package/coverage/lcov-report/api/routes/screen.js.html +1 -1
- package/coverage/lcov-report/api/routes/script.js.html +1 -1
- package/coverage/lcov-report/api/routes/table.js.html +1 -1
- package/coverage/lcov-report/api/routes/templates.js.html +1 -1
- package/coverage/lcov-report/api/routes/user.js.html +1 -1
- package/coverage/lcov-report/api/routes/utils/index.html +1 -1
- package/coverage/lcov-report/api/routes/utils/validators.js.html +1 -1
- package/coverage/lcov-report/api/routes/view.js.html +1 -1
- package/coverage/lcov-report/api/routes/webhook.js.html +1 -1
- package/coverage/lcov-report/automations/actions.js.html +1 -1
- package/coverage/lcov-report/automations/automationUtils.js.html +1 -1
- package/coverage/lcov-report/automations/bullboard.js.html +1 -1
- package/coverage/lcov-report/automations/index.html +1 -1
- package/coverage/lcov-report/automations/index.js.html +1 -1
- package/coverage/lcov-report/automations/steps/bash.js.html +1 -1
- package/coverage/lcov-report/automations/steps/delay.js.html +1 -1
- package/coverage/lcov-report/automations/steps/discord.js.html +1 -1
- package/coverage/lcov-report/automations/steps/executeQuery.js.html +1 -1
- package/coverage/lcov-report/automations/steps/executeScript.js.html +1 -1
- package/coverage/lcov-report/automations/steps/filter.js.html +1 -1
- package/coverage/lcov-report/automations/steps/index.html +1 -1
- package/coverage/lcov-report/automations/steps/integromat.js.html +1 -1
- package/coverage/lcov-report/automations/steps/loop.js.html +1 -1
- package/coverage/lcov-report/automations/steps/outgoingWebhook.js.html +1 -1
- package/coverage/lcov-report/automations/steps/queryRows.js.html +1 -1
- package/coverage/lcov-report/automations/steps/sendSmtpEmail.js.html +1 -1
- package/coverage/lcov-report/automations/steps/serverLog.js.html +1 -1
- package/coverage/lcov-report/automations/steps/slack.js.html +1 -1
- package/coverage/lcov-report/automations/steps/updateRow.js.html +1 -1
- package/coverage/lcov-report/automations/steps/utils.js.html +1 -1
- package/coverage/lcov-report/automations/steps/zapier.js.html +1 -1
- package/coverage/lcov-report/automations/triggerInfo/app.js.html +1 -1
- package/coverage/lcov-report/automations/triggerInfo/cron.js.html +1 -1
- package/coverage/lcov-report/automations/triggerInfo/index.html +1 -1
- package/coverage/lcov-report/automations/triggerInfo/index.js.html +1 -1
- package/coverage/lcov-report/automations/triggerInfo/rowDeleted.js.html +1 -1
- package/coverage/lcov-report/automations/triggerInfo/rowSaved.js.html +1 -1
- package/coverage/lcov-report/automations/triggerInfo/rowUpdated.js.html +1 -1
- package/coverage/lcov-report/automations/triggerInfo/webhook.js.html +1 -1
- package/coverage/lcov-report/automations/triggers.js.html +1 -1
- package/coverage/lcov-report/constants/index.html +1 -1
- package/coverage/lcov-report/constants/index.js.html +1 -1
- package/coverage/lcov-report/constants/layouts.js.html +1 -1
- package/coverage/lcov-report/constants/screens.js.html +1 -1
- package/coverage/lcov-report/db/inMemoryView.js.html +1 -1
- package/coverage/lcov-report/db/index.html +1 -1
- package/coverage/lcov-report/db/index.js.html +1 -1
- package/coverage/lcov-report/db/linkedRows/LinkController.js.html +1 -1
- package/coverage/lcov-report/db/linkedRows/index.html +1 -1
- package/coverage/lcov-report/db/linkedRows/index.js.html +1 -1
- package/coverage/lcov-report/db/linkedRows/linkUtils.js.html +1 -1
- package/coverage/lcov-report/db/newid.js.html +1 -1
- package/coverage/lcov-report/db/utils.js.html +1 -1
- package/coverage/lcov-report/events/AutomationEmitter.js.html +1 -1
- package/coverage/lcov-report/events/index.html +1 -1
- package/coverage/lcov-report/events/index.js.html +1 -1
- package/coverage/lcov-report/events/utils.js.html +1 -1
- package/coverage/lcov-report/index.html +14 -14
- package/coverage/lcov-report/integrations/tests/TestConfiguration.js.html +1 -1
- package/coverage/lcov-report/integrations/tests/index.html +1 -1
- package/coverage/lcov-report/middleware/appInfo.js.html +1 -1
- package/coverage/lcov-report/middleware/builder.js.html +1 -1
- package/coverage/lcov-report/middleware/currentapp.js.html +1 -1
- package/coverage/lcov-report/middleware/index.html +1 -1
- package/coverage/lcov-report/middleware/joi-validator.js.html +1 -1
- package/coverage/lcov-report/middleware/publicApi.js.html +1 -1
- package/coverage/lcov-report/middleware/resourceId.js.html +1 -1
- package/coverage/lcov-report/middleware/selfhost.js.html +1 -1
- package/coverage/lcov-report/middleware/utils.js.html +1 -1
- package/coverage/lcov-report/threads/automation.js.html +1 -1
- package/coverage/lcov-report/threads/index.html +1 -1
- package/coverage/lcov-report/threads/query.js.html +1 -1
- package/coverage/lcov-report/threads/utils.js.html +1 -1
- package/coverage/lcov-report/utilities/budibaseDir.js.html +1 -1
- package/coverage/lcov-report/utilities/centralPath.js.html +1 -1
- package/coverage/lcov-report/utilities/csvParser.js.html +1 -1
- package/coverage/lcov-report/utilities/global.js.html +1 -1
- package/coverage/lcov-report/utilities/index.html +1 -1
- package/coverage/lcov-report/utilities/index.js.html +1 -1
- package/coverage/lcov-report/utilities/queue/inMemoryQueue.js.html +1 -1
- package/coverage/lcov-report/utilities/queue/index.html +1 -1
- package/coverage/lcov-report/utilities/routing/index.html +1 -1
- package/coverage/lcov-report/utilities/routing/index.js.html +1 -1
- package/coverage/lcov-report/utilities/rowProcessor/index.html +1 -1
- package/coverage/lcov-report/utilities/rowProcessor/index.js.html +1 -1
- package/coverage/lcov-report/utilities/rowProcessor/utils.js.html +1 -1
- package/coverage/lcov-report/utilities/scriptRunner.js.html +1 -1
- package/coverage/lcov-report/utilities/security.js.html +1 -1
- package/coverage/lcov-report/utilities/statusCodes.js.html +1 -1
- package/coverage/lcov-report/utilities/usageQuota/index.html +1 -1
- package/coverage/lcov-report/utilities/usageQuota/rows.js.html +1 -1
- package/coverage/lcov-report/utilities/usageQuota/usageQuoteReset.js.html +1 -1
- package/coverage/lcov-report/utilities/users.js.html +1 -1
- package/coverage/lcov-report/utilities/workerRequests.js.html +1 -1
- package/coverage/lcov.info +48 -36
- package/dist/api/controllers/row/external.js +17 -3
- package/dist/integrations/microsoftSqlServer.js +1 -1
- package/dist/integrations/mysql.js +1 -1
- package/dist/integrations/postgres.js +1 -1
- package/dist/package.json +6 -6
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +7 -7
- package/scripts/integrations/oracle/instantclient/linux/arm64/basiclite-19.10.zip +0 -0
- package/scripts/integrations/oracle/instantclient/linux/arm64/install.sh +23 -0
- package/scripts/integrations/oracle/instantclient/linux/install.sh +10 -0
- package/src/api/controllers/row/external.js +18 -3
- package/src/integrations/microsoftSqlServer.ts +1 -0
- package/src/integrations/mysql.ts +1 -0
- package/src/integrations/postgres.ts +1 -0
|
@@ -91,7 +91,7 @@
|
|
|
91
91
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
92
92
|
Code coverage generated by
|
|
93
93
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
94
|
-
at
|
|
94
|
+
at Thu Jun 23 2022 12:18:45 GMT+0000 (Coordinated Universal Time)
|
|
95
95
|
</div>
|
|
96
96
|
<script src="../prettify.js"></script>
|
|
97
97
|
<script>
|
|
@@ -116,7 +116,7 @@
|
|
|
116
116
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
117
117
|
Code coverage generated by
|
|
118
118
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
119
|
-
at
|
|
119
|
+
at Thu Jun 23 2022 12:18:45 GMT+0000 (Coordinated Universal Time)
|
|
120
120
|
</div>
|
|
121
121
|
<script src="../../prettify.js"></script>
|
|
122
122
|
<script>
|
|
@@ -307,7 +307,7 @@ exports.getUniqueRows = async appIds => {
|
|
|
307
307
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
308
308
|
Code coverage generated by
|
|
309
309
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
310
|
-
at
|
|
310
|
+
at Thu Jun 23 2022 12:18:45 GMT+0000 (Coordinated Universal Time)
|
|
311
311
|
</div>
|
|
312
312
|
<script src="../../prettify.js"></script>
|
|
313
313
|
<script>
|
|
@@ -124,7 +124,7 @@ function <span class="fstat-no" title="function not covered" >resetQuotasIfRequi
|
|
|
124
124
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
125
125
|
Code coverage generated by
|
|
126
126
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
127
|
-
at
|
|
127
|
+
at Thu Jun 23 2022 12:18:45 GMT+0000 (Coordinated Universal Time)
|
|
128
128
|
</div>
|
|
129
129
|
<script src="../../prettify.js"></script>
|
|
130
130
|
<script>
|
|
@@ -205,7 +205,7 @@ exports.publicApiUserFix = ctx => {
|
|
|
205
205
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
206
206
|
Code coverage generated by
|
|
207
207
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
208
|
-
at
|
|
208
|
+
at Thu Jun 23 2022 12:18:45 GMT+0000 (Coordinated Universal Time)
|
|
209
209
|
</div>
|
|
210
210
|
<script src="../prettify.js"></script>
|
|
211
211
|
<script>
|
|
@@ -487,7 +487,7 @@ exports.readGlobalUser = <span class="fstat-no" title="function not covered" >as
|
|
|
487
487
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
488
488
|
Code coverage generated by
|
|
489
489
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
490
|
-
at
|
|
490
|
+
at Thu Jun 23 2022 12:18:45 GMT+0000 (Coordinated Universal Time)
|
|
491
491
|
</div>
|
|
492
492
|
<script src="../prettify.js"></script>
|
|
493
493
|
<script>
|
package/coverage/lcov.info
CHANGED
|
@@ -1774,9 +1774,9 @@ FN:98,(anonymous_8)
|
|
|
1774
1774
|
FN:101,(anonymous_9)
|
|
1775
1775
|
FN:152,(anonymous_10)
|
|
1776
1776
|
FN:157,(anonymous_11)
|
|
1777
|
-
FN:
|
|
1778
|
-
FN:
|
|
1779
|
-
FN:
|
|
1777
|
+
FN:169,(anonymous_12)
|
|
1778
|
+
FN:198,(anonymous_13)
|
|
1779
|
+
FN:228,(anonymous_14)
|
|
1780
1780
|
FNF:15
|
|
1781
1781
|
FNH:0
|
|
1782
1782
|
FNDA:0,handleRequest
|
|
@@ -1873,36 +1873,44 @@ DA:160,0
|
|
|
1873
1873
|
DA:161,0
|
|
1874
1874
|
DA:162,0
|
|
1875
1875
|
DA:163,0
|
|
1876
|
-
DA:
|
|
1877
|
-
DA:
|
|
1878
|
-
DA:
|
|
1876
|
+
DA:164,0
|
|
1877
|
+
DA:166,0
|
|
1878
|
+
DA:169,0
|
|
1879
1879
|
DA:174,0
|
|
1880
1880
|
DA:175,0
|
|
1881
|
-
DA:
|
|
1881
|
+
DA:178,0
|
|
1882
1882
|
DA:179,0
|
|
1883
1883
|
DA:180,0
|
|
1884
|
-
DA:
|
|
1885
|
-
DA:
|
|
1886
|
-
DA:185,0
|
|
1884
|
+
DA:181,0
|
|
1885
|
+
DA:182,0
|
|
1887
1886
|
DA:186,0
|
|
1888
|
-
DA:187,0
|
|
1889
|
-
DA:188,0
|
|
1890
1887
|
DA:189,0
|
|
1891
1888
|
DA:190,0
|
|
1892
|
-
DA:
|
|
1893
|
-
DA:
|
|
1894
|
-
DA:
|
|
1895
|
-
DA:198,
|
|
1889
|
+
DA:191,0
|
|
1890
|
+
DA:194,0
|
|
1891
|
+
DA:195,0
|
|
1892
|
+
DA:198,44
|
|
1893
|
+
DA:199,0
|
|
1894
|
+
DA:200,0
|
|
1896
1895
|
DA:201,0
|
|
1897
1896
|
DA:202,0
|
|
1897
|
+
DA:203,0
|
|
1898
|
+
DA:204,0
|
|
1899
|
+
DA:205,0
|
|
1898
1900
|
DA:207,0
|
|
1899
|
-
DA:
|
|
1900
|
-
DA:
|
|
1901
|
-
DA:211,0
|
|
1901
|
+
DA:208,0
|
|
1902
|
+
DA:212,0
|
|
1902
1903
|
DA:213,0
|
|
1903
|
-
DA:
|
|
1904
|
-
DA:
|
|
1905
|
-
|
|
1904
|
+
DA:216,0
|
|
1905
|
+
DA:217,0
|
|
1906
|
+
DA:222,0
|
|
1907
|
+
DA:224,0
|
|
1908
|
+
DA:225,0
|
|
1909
|
+
DA:226,0
|
|
1910
|
+
DA:228,0
|
|
1911
|
+
DA:229,0
|
|
1912
|
+
DA:242,0
|
|
1913
|
+
LF:116
|
|
1906
1914
|
LH:18
|
|
1907
1915
|
BRDA:16,0,0,0
|
|
1908
1916
|
BRDA:18,1,0,0
|
|
@@ -1937,20 +1945,24 @@ BRDA:137,15,0,0
|
|
|
1937
1945
|
BRDA:137,15,1,0
|
|
1938
1946
|
BRDA:137,16,0,0
|
|
1939
1947
|
BRDA:137,16,1,0
|
|
1940
|
-
BRDA:
|
|
1941
|
-
BRDA:
|
|
1942
|
-
BRDA:
|
|
1943
|
-
BRDA:
|
|
1944
|
-
BRDA:
|
|
1945
|
-
BRDA:
|
|
1946
|
-
BRDA:
|
|
1947
|
-
BRDA:
|
|
1948
|
-
BRDA:
|
|
1949
|
-
BRDA:
|
|
1950
|
-
BRDA:
|
|
1951
|
-
BRDA:
|
|
1952
|
-
BRDA:
|
|
1953
|
-
|
|
1948
|
+
BRDA:163,17,0,0
|
|
1949
|
+
BRDA:163,17,1,0
|
|
1950
|
+
BRDA:163,18,0,0
|
|
1951
|
+
BRDA:163,18,1,0
|
|
1952
|
+
BRDA:178,19,0,0
|
|
1953
|
+
BRDA:178,19,1,0
|
|
1954
|
+
BRDA:178,20,0,0
|
|
1955
|
+
BRDA:178,20,1,0
|
|
1956
|
+
BRDA:204,21,0,0
|
|
1957
|
+
BRDA:204,21,1,0
|
|
1958
|
+
BRDA:204,22,0,0
|
|
1959
|
+
BRDA:204,22,1,0
|
|
1960
|
+
BRDA:217,23,0,0
|
|
1961
|
+
BRDA:217,23,1,0
|
|
1962
|
+
BRDA:218,24,0,0
|
|
1963
|
+
BRDA:218,24,1,0
|
|
1964
|
+
BRDA:218,24,2,0
|
|
1965
|
+
BRF:50
|
|
1954
1966
|
BRH:0
|
|
1955
1967
|
end_of_record
|
|
1956
1968
|
TN:
|
|
@@ -157,7 +157,8 @@ exports.validate = () => __awaiter(void 0, void 0, void 0, function* () {
|
|
|
157
157
|
exports.exportRows = (ctx) => __awaiter(void 0, void 0, void 0, function* () {
|
|
158
158
|
const { datasourceId } = breakExternalTableId(ctx.params.tableId);
|
|
159
159
|
const db = getAppDB();
|
|
160
|
-
|
|
160
|
+
const format = ctx.query.format;
|
|
161
|
+
const { columns } = ctx.request.body;
|
|
161
162
|
const datasource = yield db.get(datasourceId);
|
|
162
163
|
if (!datasource || !datasource.entities) {
|
|
163
164
|
ctx.throw(400, "Datasource has not been configured for plus API.");
|
|
@@ -170,12 +171,25 @@ exports.exportRows = (ctx) => __awaiter(void 0, void 0, void 0, function* () {
|
|
|
170
171
|
},
|
|
171
172
|
};
|
|
172
173
|
let result = yield exports.search(ctx);
|
|
173
|
-
let
|
|
174
|
+
let rows = [];
|
|
175
|
+
// Filter data to only specified columns if required
|
|
176
|
+
if (columns && columns.length) {
|
|
177
|
+
for (let i = 0; i < result.rows.length; i++) {
|
|
178
|
+
rows[i] = {};
|
|
179
|
+
for (let column of columns) {
|
|
180
|
+
rows[i][column] = result.rows[i][column];
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
else {
|
|
185
|
+
rows = result.rows;
|
|
186
|
+
}
|
|
187
|
+
let headers = Object.keys(rows[0]);
|
|
174
188
|
const exporter = exporters[format];
|
|
175
189
|
const filename = `export.${format}`;
|
|
176
190
|
// send down the file
|
|
177
191
|
ctx.attachment(filename);
|
|
178
|
-
return apiFileReturn(exporter(headers,
|
|
192
|
+
return apiFileReturn(exporter(headers, rows));
|
|
179
193
|
});
|
|
180
194
|
exports.fetchEnrichedRow = (ctx) => __awaiter(void 0, void 0, void 0, function* () {
|
|
181
195
|
const id = ctx.params.rowId;
|
|
@@ -201,7 +201,7 @@ var MSSQLModule;
|
|
|
201
201
|
if (typeof name !== "string") {
|
|
202
202
|
continue;
|
|
203
203
|
}
|
|
204
|
-
schema[name] = Object.assign({ autocolumn: !!autoColumns.find((col) => col === name), name: name }, (0, utils_1.convertSqlType)(def.DATA_TYPE));
|
|
204
|
+
schema[name] = Object.assign(Object.assign({ autocolumn: !!autoColumns.find((col) => col === name), name: name }, (0, utils_1.convertSqlType)(def.DATA_TYPE)), { externalType: def.DATA_TYPE });
|
|
205
205
|
}
|
|
206
206
|
tables[tableName] = {
|
|
207
207
|
_id: (0, utils_1.buildExternalTableId)(datasourceId, tableName),
|
|
@@ -187,7 +187,7 @@ var MySQLModule;
|
|
|
187
187
|
const isAuto = typeof column.Extra === "string" &&
|
|
188
188
|
(column.Extra === "auto_increment" ||
|
|
189
189
|
column.Extra.toLowerCase().includes("generated"));
|
|
190
|
-
schema[columnName] = Object.assign({ name: columnName, autocolumn: isAuto, constraints }, (0, utils_1.convertSqlType)(column.Type));
|
|
190
|
+
schema[columnName] = Object.assign(Object.assign({ name: columnName, autocolumn: isAuto, constraints }, (0, utils_1.convertSqlType)(column.Type)), { externalType: column.Type });
|
|
191
191
|
}
|
|
192
192
|
if (!tables[tableName]) {
|
|
193
193
|
tables[tableName] = {
|
|
@@ -229,7 +229,7 @@ var PostgresModule;
|
|
|
229
229
|
column.column_default.startsWith("nextval");
|
|
230
230
|
const isGenerated = column.is_generated && column.is_generated !== "NEVER";
|
|
231
231
|
const isAuto = hasDefault || identity || isGenerated;
|
|
232
|
-
tables[tableName].schema[columnName] = Object.assign({ autocolumn: isAuto, name: columnName }, (0, utils_1.convertSqlType)(column.data_type));
|
|
232
|
+
tables[tableName].schema[columnName] = Object.assign(Object.assign({ autocolumn: isAuto, name: columnName }, (0, utils_1.convertSqlType)(column.data_type)), { externalType: column.data_type });
|
|
233
233
|
}
|
|
234
234
|
const final = (0, utils_1.finaliseExternalTables)(tables, entities);
|
|
235
235
|
this.tables = final.tables;
|
package/dist/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@budibase/server",
|
|
3
3
|
"email": "hi@budibase.com",
|
|
4
|
-
"version": "1.0.207-alpha.
|
|
4
|
+
"version": "1.0.207-alpha.6",
|
|
5
5
|
"description": "Budibase Web Server",
|
|
6
6
|
"main": "src/index.ts",
|
|
7
7
|
"repository": {
|
|
@@ -77,11 +77,11 @@
|
|
|
77
77
|
"license": "GPL-3.0",
|
|
78
78
|
"dependencies": {
|
|
79
79
|
"@apidevtools/swagger-parser": "10.0.3",
|
|
80
|
-
"@budibase/
|
|
81
|
-
"@budibase/
|
|
82
|
-
"@budibase/
|
|
83
|
-
"@budibase/
|
|
84
|
-
"@budibase/
|
|
80
|
+
"@budibase/backend-core": "^1.0.207-alpha.6",
|
|
81
|
+
"@budibase/client": "^1.0.207-alpha.6",
|
|
82
|
+
"@budibase/pro": "1.0.207-alpha.6",
|
|
83
|
+
"@budibase/string-templates": "^1.0.207-alpha.6",
|
|
84
|
+
"@budibase/types": "^1.0.207-alpha.6",
|
|
85
85
|
"@bull-board/api": "3.7.0",
|
|
86
86
|
"@bull-board/koa": "3.9.4",
|
|
87
87
|
"@elastic/elasticsearch": "7.10.0",
|