Custom Diagrams

来源:https://www.cnblogs.com/kungfupanda/archive/2019/10/20/11706651.html
-Advertisement-
Play Games

Custom Diagrams https://github.com/dbeaver/dbeaver/wiki/Custom-Diagrams Custom Diagrams https://github.com/dbeaver/dbeaver/wiki/Custom-Diagrams You ca ...


Custom Diagrams

https://github.com/dbeaver/dbeaver/wiki/Custom-Diagrams

 

You can create custom ER diagrams that can contain any tables, relations and notes.
However, even custom diagrams may contain only real existing database entities (tables).

You can create a custom diagram in one of the ways:

  1. On the DBeaver main menu, click File -> New. Then in the new diagram wizard, click DBeaver -> ER Diagram, and then Next:

  2. In the Project Explorer view, right-click the ER Diagrams node and then click Create New ER Diagram on the context menu.

In both cases, in the Diagram Create Wizard, specify the diagram name and (optionally) choose initial diagram contents (set of tables):

The new diagram appears in a separate editor. Now you can drag-n-drop any number of tables onto it. You can add tables from different connections and even different database type (for example, combine Oracle and MySQL tables in one and the same diagram).

You can also add notes and custom relations (associations) using the ERD palette on the left side of diagram tab, see details in ER Diagrams article. For example, to create a diagram similar to the one shown at the beginning of this article, you need to:

  1. Add required tables and relationships between them and move them around to create a well-shaped structure (see Structure Adjustment section of the ER Diagrams article).
  2. Add notes (see the Notes section of the ER Diagrams article).
  3. Stretch the notes to cover the intended tables, then send the notes to back, and then set color to the tables and notes (see the View Adjustment section of the ER Diagrams article).

Undo/redo functions are fully supported in diagram editing.

DBeaver - Universal Database Manager

===============================

 

ER diagrams appear on the rightmost tab of the Database Object Editor:

Entity Relation Diagrams (ERD) are graphic presentations of database entities and relations between them. DBeaver allows viewing diagrams of existing tables and whole database schemas, see Database Structure Diagrams, as well as create custom diagrams, see Custom Diagrams.
By default DBeaver uses IDEF1X notation.

Both types of diagrams provide the same tools to adjust their view and structure. They can be printed and exported to image file formats.

Selection of Elements in Diagrams

You can use one of the two tools to select elements in diagrams:

  • Select – supports both, single and multi-select modes. To select a single element (table, connection, entity inside a table) in a diagram, just click that element. To select multiple elements, similar to using the Marquee tool, click outside the first element and draw until all elements you need are in focus:

Structure Adjustment

NOTE: All changes to existing database schemas cannot be saved and are intended for exploration purposes only.
You can do the following structure changes in diagrams.

  • Add new tables to a diagram by drag-n-dropping them onto the diagram field from the Database Navigator.

  • Rearrange tables in the diagram by dragging them all over the space. You can select several tables and drag them to a new location.

  • Auto-arrange tables into a compact view after manual rearrangements: click the Arrange Diagram () in the toolbar or on the context menu (right-click anywhere on the diagram tab).

  • (Available for Custom Diagrams only) - connect tables with a connector: click the Show Palette button () in the upper-left corner of the diagram tab and then, in the Palette panel, click Connection:

     Now click the tables that you want to connect with each other in turn one by one, and then to stop the connection line double-clicking the last table.

  • (Available for Custom Diagrams only) - remove tables and connections: right-click the table or conection and click Delete on the context menu or just click the table or connection and press Delete.

View Adjustment

You can adjust the view of any diagram in the following ways:

  • Enable/disable the diagram grid: Click Toggle Grid () in the toolbar.
  • Modify attributes visibility: Right-click the diagram and, on the context menu, click Show Attributes and then one of the options:
    • All - all attributes
    • Any keys - primary and foreign keys
    • Primary key - only primary keys
    • None - no attributes
  • Modify attributes presentation: Right-click the diagram and, on the context menu, click View Styles and then one of the options:
    • Show Icons
    • Show Data Types
    • Show Nullability
    • Show Comments
    • Show Fully qualified names
  • Change the color of entities/notes: Right-click the header of the entity or comment and then click Set color on the context menu. Then you can select the color and click OK.
  • For elements located in front of/behind others, bring an element to front or send to back: Right-click the element and then click Bring to front / Send to back on the context menu.
  • Zoom the diagram in/out: Click the Zoom In/Zoom Out buttons or choose the scaling value in the dropdown list in the toolbar: 

Refresh

To see changes made to the database schema by other users, you might need to refresh the diagram: click Refresh Diagram () in the toolbar.

Notes

You can create notes only in Custom Diagrams. To create a note, click the Show Palette button () in the upper-left corner of the diagram tab, then, in the Palette panel, click Note and then click anywhere in the diagram tab. Now you can double-click Note box to enter the note text:

Search in Diagram Entities

To search among entities of a diagram, click the Search items button () in the toolbar, then type in the search combination. The entities that contain the search combination are highlighted in the diagram. To remove the filter, click the cross icon next to the search field.

Diagram Export

You can export (save) a diagram as an image (PNG, GIF, BMP formats) or as a file in GraphML format. To export a diagram, click Save diagram in external format () in the toolbar.

Diagram Printing

To print a diagram, press CTRL+P or click Print Diagram () in the toolbar.

Settings

To modify the diagram settings, click Configuration () in the toolbar.


您的分享是我們最大的動力!

-Advertisement-
Play Games
更多相關文章
  • / 參數:@PrimaryKey 主鍵,@OrderBy 排序欄位,@SqlStr sql語句,@PageSize 每頁顯示的記錄,@PageIndex 當前頁(從0開始) / ALTER procedure [dbo].[PageQuery] @PrimaryKey varchar(100), 主 ...
  • 安裝&配置 在apache的官方網站提供了好多鏡像下載地址,然後找到對應的版本 下載地址: http://mirrors.cnnic.cn/apache/zookeeper/zookeeper-3.4.14/zookeeper-3.4.14.tar.gz Windows下安裝 把下載的zookeep ...
  • rm-rf /* 不能用 完全刪除 資料庫不能直接存儲數據 table 表 DB 資料庫 DBMS 資料庫操作系統 SQL 結構化查詢語言 語句不區分大小寫,但字元串常量區區分大小寫。建議命令大寫。 SELECT 查找 SQL語言是由DDL,DML,DQL和DCL組成 ...
  • 創建資料庫: 輸入:CREATE DATABASE itcase;電腦輸出: Query OK, 1 row affected 查看資料庫:輸入:SHOW DATABASES;電腦輸出: + +| Database |+ +| information_schema || itcast || my ...
  • 緣起 最近做一個項目,類似某度雲盤,另外附加定製功能,本人負責雲盤相關功能實現,這個項目跟雲盤不同的是,以項目為分配許可權的單位,同一個項目及子目錄所有有許可權的用戶可以同時操作所有文件,這樣就很容易出現併發操作,而且表結構設計的時候,定下來文件和文件夾都有個path欄位,存儲的是所在父級文件夾路徑,這 ...
  • key 操作 刪除 key:del key 查看所有的 key(一次性遍歷整個資料庫,生產上慎重使用):keys [pattern] 利用 cursor 分頁查詢記錄(漸進的遍歷整個資料庫,生產上推薦):scan cursor [MATCH pattern] [COUNT count] 序列化給定 ...
  • 1.報錯信息: 2.出現錯誤操作: 3.解決方法 在MySQL中取消外鍵約束: 執行 之後在設置外鍵約束:`set foreign_key_checks=1;` ...
  • 在MySQL資料庫中,沒有類似於SQL Server資料庫或Oracle資料庫中索引重建的語法(ALTER INDEX ... REBUILD),那麼在MySQL資料庫中,是否有什麼方式重建索引呢? 在官方文檔中"2.11.10 Rebuilding or Repairing Tables or I... ...
一周排行
    -Advertisement-
    Play Games
  • 移動開發(一):使用.NET MAUI開發第一個安卓APP 對於工作多年的C#程式員來說,近來想嘗試開發一款安卓APP,考慮了很久最終選擇使用.NET MAUI這個微軟官方的框架來嘗試體驗開發安卓APP,畢竟是使用Visual Studio開發工具,使用起來也比較的順手,結合微軟官方的教程進行了安卓 ...
  • 前言 QuestPDF 是一個開源 .NET 庫,用於生成 PDF 文檔。使用了C# Fluent API方式可簡化開發、減少錯誤並提高工作效率。利用它可以輕鬆生成 PDF 報告、發票、導出文件等。 項目介紹 QuestPDF 是一個革命性的開源 .NET 庫,它徹底改變了我們生成 PDF 文檔的方 ...
  • 項目地址 項目後端地址: https://github.com/ZyPLJ/ZYTteeHole 項目前端頁面地址: ZyPLJ/TreeHoleVue (github.com) https://github.com/ZyPLJ/TreeHoleVue 目前項目測試訪問地址: http://tree ...
  • 話不多說,直接開乾 一.下載 1.官方鏈接下載: https://www.microsoft.com/zh-cn/sql-server/sql-server-downloads 2.在下載目錄中找到下麵這個小的安裝包 SQL2022-SSEI-Dev.exe,運行開始下載SQL server; 二. ...
  • 前言 隨著物聯網(IoT)技術的迅猛發展,MQTT(消息隊列遙測傳輸)協議憑藉其輕量級和高效性,已成為眾多物聯網應用的首選通信標準。 MQTTnet 作為一個高性能的 .NET 開源庫,為 .NET 平臺上的 MQTT 客戶端與伺服器開發提供了強大的支持。 本文將全面介紹 MQTTnet 的核心功能 ...
  • Serilog支持多種接收器用於日誌存儲,增強器用於添加屬性,LogContext管理動態屬性,支持多種輸出格式包括純文本、JSON及ExpressionTemplate。還提供了自定義格式化選項,適用於不同需求。 ...
  • 目錄簡介獲取 HTML 文檔解析 HTML 文檔測試參考文章 簡介 動態內容網站使用 JavaScript 腳本動態檢索和渲染數據,爬取信息時需要模擬瀏覽器行為,否則獲取到的源碼基本是空的。 本文使用的爬取步驟如下: 使用 Selenium 獲取渲染後的 HTML 文檔 使用 HtmlAgility ...
  • 1.前言 什麼是熱更新 游戲或者軟體更新時,無需重新下載客戶端進行安裝,而是在應用程式啟動的情況下,在內部進行資源或者代碼更新 Unity目前常用熱更新解決方案 HybridCLR,Xlua,ILRuntime等 Unity目前常用資源管理解決方案 AssetBundles,Addressable, ...
  • 本文章主要是在C# ASP.NET Core Web API框架實現向手機發送驗證碼簡訊功能。這裡我選擇是一個互億無線簡訊驗證碼平臺,其實像阿裡雲,騰訊雲上面也可以。 首先我們先去 互億無線 https://www.ihuyi.com/api/sms.html 去註冊一個賬號 註冊完成賬號後,它會送 ...
  • 通過以下方式可以高效,並保證數據同步的可靠性 1.API設計 使用RESTful設計,確保API端點明確,並使用適當的HTTP方法(如POST用於創建,PUT用於更新)。 設計清晰的請求和響應模型,以確保客戶端能夠理解預期格式。 2.數據驗證 在伺服器端進行嚴格的數據驗證,確保接收到的數據符合預期格 ...