You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/databases.md
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -68,7 +68,7 @@ There are many databases of many types.
68
68
69
69
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.
70
70
71
-

71
+

72
72
73
73
### A server database
74
74
@@ -80,11 +80,11 @@ In this case, your code would talk to this server application instead of reading
80
80
81
81
The database could be located in a different server/machine:
82
82
83
-

83
+

84
84
85
85
Or the database could be located in the same server/machine:
86
86
87
-

87
+

88
88
89
89
The most important aspect of these types of databases is that **your code doesn't read or modify** the files containing the data directly.
90
90
@@ -98,7 +98,7 @@ In some cases, the database could even be a group of server applications running
98
98
99
99
In this case, your code would talk to one or more of these server applications running on different machines.
100
100
101
-

101
+

102
102
103
103
Most of the databases that work as server applications also support multiple servers in one way or another.
104
104
@@ -257,7 +257,7 @@ For example, the table for the teams has the ID `1` for the team `Preventers` an
257
257
258
258
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.
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.
Copy file name to clipboardExpand all lines: docs/db-to-code.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -279,7 +279,7 @@ For example this **Relation** or table:
279
279
280
280
***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.
281
281
282
-

282
+

283
283
284
284
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:
0 commit comments