Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature ]Linkis metadata information storage supports multiple databases #4190

Open
binbinCheng opened this issue Feb 10, 2023 · 3 comments
Assignees
Labels
type=NewFeature New Feature

Comments

@binbinCheng
Copy link
Contributor

binbinCheng commented Feb 10, 2023

描述: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/

@github-actions
Copy link

😊 Welcome to the Apache Linkis community!!

We are glad that you are contributing by opening this issue.

Please make sure to include all the relevant context.
We will be here shortly.

If you are interested in contributing to our website project, please let us know!
You can check out our contributing guide on
👉 How to Participate in Project Contribution.

Community

WeChat Assistant WeChat Public Account

Mailing Lists

Name Description Subscribe Unsubscribe Archive
dev@linkis.apache.org community activity information subscribe unsubscribe archive

@casionone casionone added the type=NewFeature New Feature label Feb 13, 2023
@binbinCheng binbinCheng changed the title Linkis metadata information storage supports multiple databases [Feature ]Linkis metadata information storage supports multiple databases Feb 13, 2023
@rottenmu
Copy link

accept issue

@sjgllgh
Copy link
Contributor

sjgllgh commented May 10, 2023

We adapted postgresql, #4524

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type=NewFeature New Feature
Projects
Status: In Progress
Development

No branches or pull requests

4 participants