engines in create script tab

This commit is contained in:
Jan Prochazka
2020-03-03 08:01:24 +01:00
parent a4a470de45
commit 17e2c18c49
5 changed files with 69 additions and 38 deletions

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