Skip to content

Commit e7b970c

Browse files
🍱 Update SVG files, a single file per diagram, sans-serif fonts (#1373)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent cd19d60 commit e7b970c

File tree

77 files changed

+14639
-2815
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

77 files changed

+14639
-2815
lines changed

docs/databases.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ There are many databases of many types.
6868

6969
A database could be a single file called `heroes.db`, managed with code in a very efficient way. An example would be SQLite, more about that in a bit.
7070

71-
![database as a single file](img/databases/single-file.svg)
71+
![database as a single file](img/databases/single-file.drawio.svg)
7272

7373
### A server database
7474

@@ -80,11 +80,11 @@ In this case, your code would talk to this server application instead of reading
8080

8181
The database could be located in a different server/machine:
8282

83-
![database in an external server](img/databases/external-server.svg)
83+
![database in an external server](img/databases/external-server.drawio.svg)
8484

8585
Or the database could be located in the same server/machine:
8686

87-
![database in the same server](img/databases/same-server.svg)
87+
![database in the same server](img/databases/same-server.drawio.svg)
8888

8989
The most important aspect of these types of databases is that **your code doesn't read or modify** the files containing the data directly.
9090

@@ -98,7 +98,7 @@ In some cases, the database could even be a group of server applications running
9898

9999
In this case, your code would talk to one or more of these server applications running on different machines.
100100

101-
![distributed database in multiple servers](img/databases/multiple-servers.svg)
101+
![distributed database in multiple servers](img/databases/multiple-servers.drawio.svg)
102102

103103
Most of the databases that work as server applications also support multiple servers in one way or another.
104104

@@ -257,7 +257,7 @@ For example, the table for the teams has the ID `1` for the team `Preventers` an
257257

258258
As these **primary key** IDs can uniquely identify each row on the table for teams, we can now go to the table for heroes and refer to those IDs in the table for teams.
259259

260-
![table relationships](img/databases/relationships.svg)
260+
![table relationships](img/databases/relationships.drawio.svg)
261261

262262
So, in the table for heroes, we use the `team_id` column to define a relationship to the *foreign* table for teams. Each value in the `team_id` column on the table with heroes will be the same value as the `id` column of one row in the table with teams.
263263

docs/db-to-code.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ For example this **Relation** or table:
279279

280280
* **Mapper**: this comes from Math, when there's something that can convert from some set of things to another, that's called a "**mapping function**". That's where the **Mapper** comes from.
281281

282-
![Squares to Triangles Mapper](img/db-to-code/mapper.svg)
282+
![Squares to Triangles Mapper](img/db-to-code/mapper.drawio.svg)
283283

284284
We could also write a **mapping function** in Python that converts from the *set of lowercase letters* to the *set of uppercase letters*, like this:
285285

docs/img/databases/external-server.drawio

Lines changed: 0 additions & 93 deletions
This file was deleted.

docs/img/databases/external-server.drawio.svg

Lines changed: 778 additions & 0 deletions
Loading

docs/img/databases/external-server.svg

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)