mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-21 11:45:59 +00:00
engines in create script tab
This commit is contained in:
10
packages/web/src/utility/useConnectionInfo.js
Normal file
10
packages/web/src/utility/useConnectionInfo.js
Normal file
@@ -0,0 +1,10 @@
|
||||
import useFetch from './useFetch';
|
||||
|
||||
export default function useConnectionInfo(conid) {
|
||||
/** @type {import('@dbgate/types').StoredConnection} */
|
||||
const connection = useFetch({
|
||||
params: { conid },
|
||||
url: 'connections/get',
|
||||
});
|
||||
return connection;
|
||||
}
|
||||
Reference in New Issue
Block a user