mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-20 01:55:59 +00:00
using sql-select instead of query-data
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user