Skip to content

Commit 30ca471

Browse files
Expand the "Relationships" section
1 parent 8020ab5 commit 30ca471

File tree

3 files changed

+626
-1153
lines changed

3 files changed

+626
-1153
lines changed

book/30-schema-design/035-diagrams.ipynb

Lines changed: 27 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -30,18 +30,9 @@
3030
},
3131
{
3232
"cell_type": "code",
33-
"execution_count": 1,
33+
"execution_count": 3,
3434
"metadata": {},
35-
"outputs": [
36-
{
37-
"name": "stderr",
38-
"output_type": "stream",
39-
"text": [
40-
"[2024-10-21 01:31:00,046][INFO]: Connecting root@localhost:3306\n",
41-
"[2024-10-21 01:31:00,065][INFO]: Connected root@localhost:3306\n"
42-
]
43-
}
44-
],
35+
"outputs": [],
4536
"source": [
4637
"import datajoint as dj\n",
4738
"\n",
@@ -78,6 +69,31 @@
7869
"\n"
7970
]
8071
},
72+
{
73+
"cell_type": "code",
74+
"execution_count": 5,
75+
"metadata": {},
76+
"outputs": [],
77+
"source": [
78+
"d = dj.Diagram(schema)"
79+
]
80+
},
81+
{
82+
"cell_type": "code",
83+
"execution_count": 13,
84+
"metadata": {},
85+
"outputs": [],
86+
"source": [
87+
"d.save('project.svg')"
88+
]
89+
},
90+
{
91+
"cell_type": "code",
92+
"execution_count": 12,
93+
"metadata": {},
94+
"outputs": [],
95+
"source": []
96+
},
8197
{
8298
"cell_type": "code",
8399
"execution_count": null,

0 commit comments

Comments
 (0)