-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'feat/dataArchiving_433_oss of [email protected]:oceanbase/oceanbase-developer-center.git into dev-4.3.3 https://code.alipay.com/oceanbase/oceanbase-developer-center/pull_requests/589 Signed-off-by: 晓康 <[email protected]> * feat: 数据归档支持对象存储 * feat: 删除调试代码、注释 * feat: 增加选择数据库逻辑 * feat: 数据归档源端数据库屏蔽对象存储、项目对象存储屏蔽操作列 * feat:删除log
- Loading branch information
Showing
53 changed files
with
901 additions
and
221 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
import { ConnectType, TaskType } from '@/d.ts'; | ||
import { IDataSourceModeConfig } from '../interface'; | ||
import MySQLColumnExtra from '../oceanbase/MySQLColumnExtra'; | ||
import { haveOCP } from '@/util/env'; | ||
|
||
const CloudStorageConfig: IDataSourceModeConfig = { | ||
connection: { | ||
address: { | ||
items: ['ip'], | ||
}, | ||
account: false, | ||
sys: false, | ||
ssl: false, | ||
disableURLParse: true, | ||
cloudStorage: true, | ||
disableExtraConfig: true, | ||
}, | ||
features: { | ||
task: [TaskType.DATA_ARCHIVE, TaskType.DATA_DELETE], | ||
obclient: false, | ||
recycleBin: false, | ||
sessionManage: false, | ||
sessionParams: false, | ||
sqlExplain: false, | ||
resourceTree: false, | ||
export: { | ||
fileLimit: false, | ||
snapshot: false, | ||
}, | ||
}, | ||
}; | ||
|
||
const ALIYUN: Record<ConnectType.OSS, IDataSourceModeConfig> = { | ||
[ConnectType.OSS]: CloudStorageConfig, | ||
}; | ||
const AWSS3: Record<ConnectType.S3A, IDataSourceModeConfig> = { | ||
[ConnectType.S3A]: CloudStorageConfig, | ||
}; | ||
|
||
const HUAWEI: Record<ConnectType.OBS, IDataSourceModeConfig> = { | ||
[ConnectType.OBS]: CloudStorageConfig, | ||
}; | ||
|
||
const QCLOUD: Record<ConnectType.COS, IDataSourceModeConfig> = { | ||
[ConnectType.COS]: CloudStorageConfig, | ||
}; | ||
|
||
export default { ALIYUN, AWSS3, HUAWEI, QCLOUD }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.