mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-21 17:36:01 +00:00
expandable FK columns
This commit is contained in:
12
packages/web/src/utility/getTableInfo.js
Normal file
12
packages/web/src/utility/getTableInfo.js
Normal file
@@ -0,0 +1,12 @@
|
||||
import axios from './axios';
|
||||
|
||||
export default async function getTableInfo({ conid, database, schemaName, pureName }) {
|
||||
const resp = await axios.request({
|
||||
method: 'get',
|
||||
url: 'tables/table-info',
|
||||
params: { conid, database, schemaName, pureName },
|
||||
});
|
||||
/** @type {import('@dbgate/types').TableInfo} */
|
||||
const res = resp.data;
|
||||
return res;
|
||||
}
|
||||
Reference in New Issue
Block a user