FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

馃嵄 Update SVG files, a single file per diagram, sans-serif fonts by tiangolo 路 Pull Request #1373 路 fastapi/sqlmodel 路 GitHub

Repository navigation

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension .drawio  (22) .md  (11) .svg  (44) All 3 file types selected
Deleted files Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
10 changes: 5 additions & 5 deletions docs/databases.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ There are many databases of many types.

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.

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

### A server database

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

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

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

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

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

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

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

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

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

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

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

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.

![table relationships](img/databases/relationships.svg)
![table relationships](img/databases/relationships.drawio.svg)

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.

Expand Down
2 changes: 1 addition & 1 deletion docs/db-to-code.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ For example this **Relation** or table:

* **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.

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

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:

Expand Down
93 changes: 0 additions & 93 deletions docs/img/databases/external-server.drawio

This file was deleted.

778 changes: 778 additions & 0 deletions docs/img/databases/external-server.drawio.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Viewer requires iframe.
1 change: 0 additions & 1 deletion docs/img/databases/external-server.svg

This file was deleted.

Loading

Back | FazBrowse Home | New Git URL