@@ -26,7 +26,7 @@ At this point, there are three types of command which can be executed:
261. relational algebra expressions such as:
261. relational algebra expressions such as:
29−TutorialD: :s S join P
29+TutorialD (master): :showExpr S join P
30┌──────┬─────┬──┬─────┬──┬─────┬──────┬──────┐
30┌──────┬─────┬──┬─────┬──┬─────┬──────┬──────┐
31│CITY │COLOR│P#│PNAME│S#│SNAME│STATUS│WEIGHT│
31│CITY │COLOR│P#│PNAME│S#│SNAME│STATUS│WEIGHT│
32├──────┼─────┼──┼─────┼──┼─────┼──────┼──────┤
32├──────┼─────┼──┼─────┼──┼─────┼──────┼──────┤
@@ -43,26 +43,76 @@ TutorialD: :s S join P
43└──────┴─────┴──┴─────┴──┴─────┴──────┴──────┘
43└──────┴─────┴──┴─────┴──┴─────┴──────┴──────┘
46− where ":s" instructs the interpreter to show the resultant relation, "S" and "P" are relation names, and "join" is the join operator.
46+ where ":show" instructs the interpreter to show the resultant relation, "S" and "P" are relation names, and "join" is the join operator.
472. interpreter-level queries such as:
472. interpreter-level queries such as:
50−TutorialD: :t S
50+TutorialD (master): :type S
51{CITY "char", S# "char", SNAME "char", STATUS "char"}
51{CITY "char", S# "char", SNAME "char", STATUS "char"}
54 which shows the Tutorial D type for a relational expression and
54 which shows the Tutorial D type for a relational expression and
57−TutorialD: :c
57+TutorialD (master): :constraints
58fromList []
58fromList []
60which displays database constraints.
60which displays database constraints.
63+TutorialD (master): :commit
65+which commits the current "disconnected" transaction which is similar to the git staging area/index.
68+TutorialD (master): :jumphead master
71+which changes the current disconnected transaction to reference another head.
74+TutorialD (master): :jump 4a4ee715-297d-49db-bfd1-afaefadc902b
77+which resets the current "disconnected" transaction to refer to the committed transaction specified by the UUID.
80+TutorialD (master): :branch devel
84+which creates a new head named "devel" in the transaction graph and resets the current "disconnected" transaction to refer to the
87+TutorialD (devel): :rollback
91+which resets the current "disconnected" transaction to discard any collected changes.
94+TutorialD (devel): :showGraph
95+┌───────┬────────────────────────────────────┬──────────────────────────────────────┐
96+│current│id │parents │
97+├───────┼────────────────────────────────────┼──────────────────────────────────────┤
98+│1 │1d064d54-cd2a-4a43-822a-cbd18cf7c4e8│┌────────────────────────────────────┐│
100+│ │ │├────────────────────────────────────┤│
101+│ │ ││4a4ee715-297d-49db-bfd1-afaefadc902b││
102+│ │ │└────────────────────────────────────┘│
103+│0 │4a4ee715-297d-49db-bfd1-afaefadc902b│┌──┐ │
107+└───────┴────────────────────────────────────┴──────────────────────────────────────┘
110+which displays all committed transactions and their parents. The "current" attribute indicates to which transactions the current "disconnected" transaction refers.
623. expressions which modify the database context such as:
1123. expressions which modify the database context such as:
65−TutorialD: x := S JOIN P
115+TutorialD (master): x := S JOIN P
67 which sets the relational variable named "x" to the results of "S join P" if the database constraint checking succeeds.
117 which sets the relational variable named "x" to the results of "S join P" if the database constraint checking succeeds.