CloudBeaver 參考架構

安全劍客發表於2020-06-11
CloudBeaver 是一個基於 Web 的雲資料庫管理工具,支援 PostgreSQL、MySQL、MariaDB、SQLite 和 Firebird 等資料庫。
server

osgi 模式,依賴 dbeaver

依賴的庫
  • 依賴的庫
    Equinox osgi 容器
    Eclipse Platform,虛擬檔案系統&&外掛系統
    Jetty web server
    Java Graphql 前端通訊api
    DBeaver 系統管理平臺
    一些三方資料庫驅動
  • 當前支援的資料庫
    pg
    mysql
    mariadb
    sqlite
    firebird
server api

api 地址格式: {ServerPort}/${ContentRoot}/gql/console
CloudBeaver 的為: 

frontend 技術
技術棧

react 作為單頁面技術,InversifyJS作為ioc處理,MobX 管理狀態,graphql 進行api 通訊
專案使用lerna單體倉庫模式管理,整合reshadow 進行web 元件化開發,以及css 模組化
樣式效果,ag-grid 進行表格資料展示,Codemirror 做為sql 編輯器

構建&&執行

本地構建,執行

cd webapp/packages/dbeaver
yarn run dev --server=localhost:8978
plugins
* core
   * app - Base application folder
   * assets - Styles and translation
   * blocks - Low-level common visual components
   * di - Dependency injection related classes
   * dialogs - Main and context menues, modal windows
   * eventsLog - Logging
   * sdk - GraphQL related services
   * theming - Themisation related services and hooks
* ag-grid-plugin - wrapper over Ag-Grid
* basic-connectio-plugin - provides handling of preconfigured connections
* custom-connection-plugin - provides handling of custom connections
* data-viewer-plugin - provides Data Table View
* object-viewer-plugin - provides Object Property View
* sql-editor - provides SQL-editor tab
* dbeaver - configure and build all plugins to the final application
說明

透過官方的介紹我們可以整體的瞭解開發模式,方便學習

參考資料




  • https://reshadow.dev/





原文地址:

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/31559985/viewspace-2697699/,如需轉載,請註明出處,否則將追究法律責任。

相關文章