mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-21 14:06:00 +00:00
table tab tooltip
This commit is contained in:
4
packages/web/src/utility/fullDisplayName.js
Normal file
4
packages/web/src/utility/fullDisplayName.js
Normal file
@@ -0,0 +1,4 @@
|
||||
export default function fullDisplayName({ schemaName, pureName }) {
|
||||
if (schemaName) return `${schemaName}.${pureName}`;
|
||||
return pureName;
|
||||
}
|
||||
12
packages/web/src/utility/getConnectionInfo.js
Normal file
12
packages/web/src/utility/getConnectionInfo.js
Normal file
@@ -0,0 +1,12 @@
|
||||
import axios from './axios';
|
||||
|
||||
export default async function getConnectionInfo(conid) {
|
||||
const resp = await axios.request({
|
||||
method: 'get',
|
||||
params: { conid },
|
||||
url: 'connections/get',
|
||||
});
|
||||
/** @type {import('@dbgate/types').StoredConnection} */
|
||||
const res = resp.data;
|
||||
return res;
|
||||
}
|
||||
Reference in New Issue
Block a user