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

Loading…
Cancel
Save