Browse Source

无JIRA任务,优化下类型

feature/x
Austin.Duan 2 years ago
parent
commit
b4e6752f7b
  1. 74
      src/modules/crud/crud.typings.d.ts

74
src/modules/crud/crud.typings.d.ts vendored

@ -35,17 +35,17 @@ type ConnectionDataOfSSH = {
sshTimeOut: number;
sshKeepAlive: number;
} & (
| {
sshType: 'NORMAL'; // 验证方法:密码
sshPrivateKeyPath: ''; // 没啥意义,该验证方法下为空字符串
sshSecret: string; // 密码
}
| {
sshType: 'KEY'; // 验证方法:公钥
sshPrivateKeyPath: string; // 私钥
sshSecret: string; // 密码短语
}
);
| {
sshType: 'NORMAL'; // 验证方法:密码
sshPrivateKeyPath: ''; // 没啥意义,该验证方法下为空字符串
sshSecret: string; // 密码
}
| {
sshType: 'KEY'; // 验证方法:公钥
sshPrivateKeyPath: string; // 私钥
sshSecret: string; // 密码短语
}
);
type ConnectionDataOfSSL = {
usingSsl: boolean; // 使用SSL通道
@ -209,28 +209,7 @@ export type ConnectionJDBC = {
/**
*
*/
parallelLoad?: {
/**
*
*/
serverAddress?: string;
/**
*
*/
serverAddressItems?: string[];
/**
*
*/
reuseTemporaryTable?: string;
/**
*
*/
filePiecesLimit?: string;
/**
*
*/
fileSizeLimit?: string
};
parallelLoad?: IParallelLoad;
/**
* HDFS
*/
@ -240,8 +219,33 @@ export type ConnectionJDBC = {
*/
hdfsAddress?: string;
};
} & ConnectionDataOfSSH &
ConnectionDataOfSSL
} & ConnectionDataOfSSH & ConnectionDataOfSSL;
/**
*
*/
export interface IParallelLoad {
/**
*
*/
serverAddress?: string;
/**
*
*/
serverAddressItems?: string[];
/**
*
*/
reuseTemporaryTable?: string;
/**
*
*/
filePiecesLimit?: string;
/**
*
*/
fileSizeLimit?: string
}
export interface ContextHashtable {
'java.naming.factory.initial': string;

Loading…
Cancel
Save