forked from OtterMind/Chat2DB
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconnection.ts
More file actions
59 lines (50 loc) · 1.15 KB
/
Copy pathconnection.ts
File metadata and controls
59 lines (50 loc) · 1.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
import { DatabaseTypeCode } from '@/constants';
// 连接 高级配置列表的信息
export interface IConnectionExtendInfoItem {
key: string;
value: string;
}
// 连接的环境信息
export interface IConnectionEnv {
id: number;
name: string;
shortName: string;
color: string;
}
// 连接列表的信息
export interface IConnectionListItem {
id: number;
alias: string;
environment: IConnectionEnv;
type: DatabaseTypeCode;
supportDatabase: boolean;
supportSchema: boolean;
}
export interface IConnectionDetails {
id: number;
alias: string;
environment: IConnectionEnv;
type: DatabaseTypeCode;
isAdmin: boolean;
url: string;
user: string;
password: string;
ConsoleOpenedStatus: 'y' | 'n';
extendInfo: IConnectionExtendInfoItem[];
environmentId: number;
ssh: any;
driverConfig: {
jdbcDriver: string;
jdbcDriverClass: string;
};
[key: string]: any;
}
export interface IConnectionListItem {
id: number;
alias: string;
environment: IConnectionEnv;
type: DatabaseTypeCode;
supportDatabase: boolean;
supportSchema: boolean;
}
export type ICreateConnectionDetails = Omit<IConnectionDetails, 'id'>