[Feature ]Linkis metadata information storage supports multiple databases
- Dominant language
- Java
- Stars
- 3.4k
- Forks
- 1.2k
- PR merge metrics
- No merged PRs in 30d
Description
**描述**:Linkis的元数据信息存储支持多数据库
**需求**:将mybatis的mapper文件移动到resources/mapper/mysql/)下,在支持其它数据库时,可以新建一个子目录,如:resources/mapper/postgresql/
------
以jobhistory 为例 linkis-public-enhancements/linkis-jobhistory,当前linkis自身数据,只支持mysql 数据库方式。有些用户可能不是mysql,如果希望同时支持其他数据库如 PostgreSQL,这样用户可以根据自己实际使用情况选择使用
```
|-- main
| |-- java
| |-- resources
| | `-- mapper
| | `-- common
| | |-- JobDetailMapper.xml
| | `-- JobHistoryMapper.xml
```
需要适配
可以考虑 通过不同文件名区分 如
```
|-- main
| |-- java
| |-- resources
| | `-- mapper
| | `-- common
| | |-- JobDetailMapper.xml
| | `-- JobHistoryMapper.xml
|-- main
| |-- java
| |-- resources
| | |-- mysql
| | | `-- mapper
| | | `-- common
| | | |-- JobDetailMapper.xml
| | | `-- JobHistoryMapper.xml
| | `-- postgresql
| | `-- mapper
| | `-- common
| | |-- JobDetailMapper.xml
| | `-- JobHistoryMapper.xml
```
**Description**: Linkis metadata information storage supports multiple databases
**Requirement description**: Move the mapper file of mybatis to resources/mapper/mysql/), and create a new subdirectory when supporting other databases, such as: resources/mapper/postgresql/
Contributor guide
Assessment
This issue has not been assessed yet.