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

WallFilter添加NoOpWallProvider实现或开放是否支持接口 #5682

Closed
yimlin opened this issue Jan 9, 2024 · 4 comments
Closed

WallFilter添加NoOpWallProvider实现或开放是否支持接口 #5682

yimlin opened this issue Jan 9, 2024 · 4 comments

Comments

@yimlin
Copy link

yimlin commented Jan 9, 2024

在数据治理项目中,动态添加多数据源是一种常见需求。

然而目前WallFilter仅支持常见数据库,无法支持实现了JDBC接口的新型库如:NoSQL以及iceberg等湖仓库。
添加数据源时,需要判断WallFilter是否支持,代码目前比较繁琐,建议如下:

  1. 添加一个NoOpWallProvier,当遇到不支持的数据库类型,不是抛No Support DbType异常;
  2. WallFilter开放一个接口public boolean supportDbType(String dbType),让应用程序根据结果添加WallFillter
@d891320478
Copy link

确实需要这个功能,这边有项目上要切换使用中兴的goldendb,连接的时候也在这里出现了报错

lizongbo added a commit to lizongbo/druid that referenced this issue Mar 12, 2024
参考测试用例可以自行实现 com.alibaba.druid.wall.WallProviderCreator,通过spi机制扩展自定义逻辑
lizongbo added a commit that referenced this issue Mar 12, 2024
参考测试用例可以自行实现 com.alibaba.druid.wall.WallProviderCreator,通过spi机制扩展自定义逻辑
@lizongbo
Copy link
Collaborator

增加了WallProviderCreator的spi回调口子,在1.2.22版本验证一下吧

@lizongbo
Copy link
Collaborator

请使用 1.2.22进行验证

@yimlin
Copy link
Author

yimlin commented Mar 20, 2024

well done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants