create table script

This commit is contained in:
Jan Prochazka
2020-03-02 22:08:06 +01:00
parent 08cef79f10
commit e038be12b9
5 changed files with 174 additions and 21 deletions

View 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;
}