mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-18 00:56:02 +00:00
12 lines
385 B
JavaScript
12 lines
385 B
JavaScript
import useFetch from './useFetch';
|
|
|
|
export default function useTableInfo({ conid, database, schemaName, pureName }) {
|
|
/** @type {import('@dbgate/types').TableInfo} */
|
|
const tableInfo = useFetch({
|
|
url: 'metadata/table-info',
|
|
params: { conid, database, schemaName, pureName },
|
|
reloadTrigger: `database-structure-changed-${conid}-${database}`,
|
|
});
|
|
return tableInfo;
|
|
}
|