Skip to content

Commit

Permalink
fixed diagrams
Browse files Browse the repository at this point in the history
  • Loading branch information
dimitri-yatsenko committed Sep 9, 2024
1 parent 9c39eb6 commit 2a53c85
Show file tree
Hide file tree
Showing 8 changed files with 1,346 additions and 628 deletions.
4 changes: 2 additions & 2 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ RUN wget --quiet https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86

# Install additional tools or packages as needed in the base environment
RUN conda init bash && \
conda install -n base -c conda-forge python=3.10 python-graphviz jupyterlab numpy pandas 'nodejs>20,<21' pip -y && \
conda install -n base -c conda-forge python=3.11 python-graphviz jupyterlab numpy pandas 'nodejs>20,<21' pip -y && \
pip install mystmd && \
pip install jupyterlab_myst && \
pip install datajoint && \
pip install git+https://github.com/datajoint/datajoint-python.git && \
pip install ipython-sql && \
pip install Faker

Expand Down
11 changes: 11 additions & 0 deletions book/20-concepts/01-relational.md
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,17 @@ Entity-relationship diagram in Chen ER notation.
:::{figure}
:align: center

```{mermaid}
---
title: Crow's Foot notation.
---
erDiagram
EMPLOYEE ||--|| PROJECT : assigned-to
```
Entity-relationship diagram using [Crow's Foot notation](https://mermaid.js.org/syntax/entityRelationshipDiagram.html).
:::


```{mermaid}
---
title: Crow's Foot notation.
Expand Down
10 changes: 5 additions & 5 deletions book/30-schema-design/060-uuid.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@
"metadata": {},
"source": [
"# Using UUIDs\n",
"## Background\n",
"Universally Unique Identifiers (UUIDs) provide convenient mechanisms for identifying pieces of information (objects) inside an information system. Various conventions exist. However, general patterns have been established and formalized as RFC 4122.\n",
"\n",
"Comprised of hex digits, UUIDs have the pattern `8-4-4-4-12`, e.g. `e45ba2cc-39db-11e9-8e62-7470fdf23ef1`.\n",
"Universally Unique Identifiers (UUIDs) provide a convenient mechanism for generating unique identifiers for entities inside an information system. The use of UUIDs is standardized by as RFC 4122.\n",
"\n",
"It adds up to 36 characters (32 hex + 4 hyphens), or 16 bytes of information (128 bits).\n",
"A UUID consists of 128-bits (16 bytes) that are displayed consistently as a 36-character string comprised of hex digits hyphenated as `8-4-4-4-12`.\n",
"\n",
"Python provides the [UUID module](https://docs.python.org/3/library/uuid.html) in its standard library."
"For example `e45ba2cc-39db-11e9-8e62-7470fdf23ef1` is a valid UUID.\n",
"\n",
"Python provides the [UUID module](https://docs.python.org/3/library/uuid.html) as part of its standard library."
]
},
{
Expand Down
Loading

0 comments on commit 2a53c85

Please sign in to comment.