using sql-select instead of query-data

This commit is contained in:
Jan Prochazka
2022-03-17 10:32:57 +01:00
parent 0d7bfd5f90
commit 9c7a130ee4
8 changed files with 50 additions and 48 deletions

View File

@@ -1,13 +1,13 @@
<script lang="ts" context="module">
async function loadRow(props, sql) {
async function loadRow(props, select) {
const { conid, database } = props;
if (!sql) return null;
if (!select) return null;
const response = await apiCall('database-connections/query-data', {
const response = await apiCall('database-connections/sql-select', {
conid,
database,
sql,
select,
});
if (response.errorMessage) return response;