oceanbase odc 开源了

发布时间 2023-08-30 21:40:33作者: 荣锋亮

我以前也打开简单说过,oceanbase odc 的实现(通过同时猜测的),就在今天odc 整体源码开源了,对于需要自己
扩展的同学是比较方便的,同时也可以更好的学习odc 的实现机制

目前odc 包含的组建

  • client 
    web 前端,同时也有基于electron 包装的客户端,会启动jar 暴露的rest 服务进行操作,具体如何启动的可以参考 
    odc-client 中的src/main/server/main.ts 同时还支持创建模式的能力
  • odc server

基于java 开发的,实现上框架基于了spring boot ,同时对于开发的能力支持插件化开发(比如支持ob-mysql,ob-oracle,mysql)插件开发如下

 

说明

odc 的源码还是很值得看看的,可以了解不少关于ob 操作管理的技巧的,同时基于了插件化的开发,也是很值得学习的,可以自己进行扩展
插件开发部分基于了pf4j

参考资料

https://github.com/oceanbase/odc
https://github.com/oceanbase/odc-doc
https://github.com/oceanbase/odc-client
https://www.cnblogs.com/rongfengliang/p/15774919.html
https://github.com/oceanbase/odc-client/blob/5cee355b4365cdc696b5cc47f2c348d623b6729e/src/main/server/main.ts
https://pf4j.org/
https://github.com/pf4j/pf4j