@@ -7,7 +7,7 @@ Understand Diagrams
7
7
.. contents:: On this page
8
8
:local:
9
9
:backlinks: none
10
- :depth: 2
10
+ :depth: 1
11
11
:class: singlecol
12
12
13
13
This page explains how to interpret diagrams created in the Relational
@@ -55,7 +55,7 @@ Some fields have icons to indicate their role within the table:
55
55
Choose View Mode
56
56
----------------
57
57
58
- The Relational Migrator provides different view modes for your diagrams :
58
+ Relational Migrator provides different diagram view modes:
59
59
Horizontal Split, Vertical Split, Relational view, and MongoDB view.
60
60
61
61
.. list-table::
@@ -109,6 +109,43 @@ features of relationships:
109
109
110
110
- A prong (or "crow's feet") indicates "many" in the relationship.
111
111
112
+ Undo or Redo Diagram Actions
113
+ ----------------------------
114
+
115
+ Relational Migrator diagrams support undo and redo functions. To reverse
116
+ or reapply the previous diagram action, use the undo or redo capability.
117
+ You can use either the diagram toolbar or keyboard shortcuts to perform
118
+ these actions.
119
+
120
+ Toolbar
121
+ ~~~~~~~
122
+
123
+ You can use the :icon-lg:`Undo` and :icon-lg:`Redo` buttons on the
124
+ diagram toolbar:
125
+
126
+ .. image:: /img/diagrams/undo-redo.png
127
+ :alt: Toolbar undo and redo buttons
128
+
129
+ Keyboard Shortcut
130
+ ~~~~~~~~~~~~~~~~~
131
+
132
+ Alternatively, you can use keyboard shortcuts:
133
+
134
+ .. list-table::
135
+ :header-rows: 1
136
+
137
+ * - Function
138
+ - Windows Shortcut
139
+ - Mac Shortcut
140
+
141
+ * - Undo
142
+ - :kbd:`Control` + :kbd:`Z`
143
+ - :kbd:`Command` + :kbd:`Z`
144
+
145
+ * - Redo
146
+ - :kbd:`Control` + :kbd:`Y`
147
+ - :kbd:`Command` + :kbd:`Y`
148
+
112
149
Relational and MongoDB View Links
113
150
---------------------------------
114
151
@@ -117,8 +154,8 @@ Relational Migrator highlights the corresponding entity in the opposite
117
154
view. This allows you to see how your relational tables and MongoDB
118
155
collections are mapped to one another.
119
156
120
- Example
121
- -------
157
+ Examples
158
+ --------
122
159
123
160
The following example shows a sample diagram for a database that
124
161
tracks orders at a store.
@@ -202,18 +239,15 @@ MongoDB's embedded data model:
202
239
of objects inside the ``Order`` documents, using the foreign key
203
240
relationship from the relational schema.
204
241
205
-
206
242
.. image:: /img/diagrams/order-mapping-example.png
207
243
:alt: Order Mapping Rule Example
208
244
209
-
210
245
- The ``Customer`` collection contains a rule which maps ``Orders`` as
211
246
an :ref:`Embedded array <rm-embedded-array>`. The ``Order``
212
247
table from the relational schema is mapped as an array of objects
213
248
inside the ``Customer`` documents, using the foreign key relationship
214
249
from the relational schema.
215
250
216
-
217
251
.. image:: /img/diagrams/customer-mapping-example.png
218
252
:alt: Customer Mapping Rule Example
219
253
0 commit comments