mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-22 08:46:00 +00:00
create table script
This commit is contained in:
10
packages/web/src/utility/useTableInfo.js
Normal file
10
packages/web/src/utility/useTableInfo.js
Normal file
@@ -0,0 +1,10 @@
|
||||
import useFetch from './useFetch';
|
||||
|
||||
export default function useTableInfo({ conid, database, schemaName, pureName }) {
|
||||
/** @type {import('@dbgate/types').TableInfo} */
|
||||
const tableInfo = useFetch({
|
||||
url: 'tables/table-info',
|
||||
params: { conid, database, schemaName, pureName },
|
||||
});
|
||||
return tableInfo;
|
||||
}
|
||||
Reference in New Issue
Block a user