Skip to content

Commit 2013c69

Browse files
egrimtiangolo
andauthored
✏ Fix multiple typos and some rewording (#22)
Co-authored-by: Sebastián Ramírez <[email protected]>
1 parent 6615b11 commit 2013c69

File tree

6 files changed

+14
-14
lines changed

6 files changed

+14
-14
lines changed

docs/databases.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ Some examples of databases that work like this could be **PostgreSQL**, **MySQL*
8585

8686
### Distributed servers
8787

88-
In some cases, the database could even be a group server applications running on different machines, working together and communicating between them to be more efficient and handle more data.
88+
In some cases, the database could even be a group of server applications running on different machines, working together and communicating between them to be more efficient and handle more data.
8989

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

docs/tutorial/connect/create-connected-tables.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ Most of that should look familiar:
107107

108108
The column will be named `team_id`. It will be an integer, and it could be `NULL` in the database (or `None` in Python), becase there could be some heroes that don't belong to any team.
109109

110-
As we don't have to explicitly pass `team_id=None` when creating a hero, we add a default of `None` to the `Field()`.
110+
We add a default of `None` to the `Field()` so we don't have to explicitly pass `team_id=None` when creating a hero.
111111

112112
Now, here's the new part:
113113

docs/tutorial/limit-and-offset.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ In this case, instead of getting all the 7 rows, we are limiting them to only ge
8181

8282
<img class="shadow" alt="table with first 3 rows selected" src="/img/tutorial/offset-and-limit/limit.svg">
8383

84-
## Run the Program on the Comamnd Line
84+
## Run the Program on the Command Line
8585

8686
If we run it on the command line, it will output:
8787

@@ -153,7 +153,7 @@ Each of those methods applies the change in the internal special select statemen
153153

154154
**Offset** means "skip this many rows", and as we want to skip the ones we already saw, the first three, we use `.offset(3)`.
155155

156-
## Run the Program with Offset on the Comamnd Line
156+
## Run the Program with Offset on the Command Line
157157

158158
Now we can run the program on the command line, and it will output:
159159

@@ -207,9 +207,9 @@ The database right now has **only 7 rows**, so this query can only get 1 row.
207207

208208
But don't worry, the database won't throw an error trying to get 3 rows when there's only one (as would happen with a Python list).
209209

210-
The database knows that we want to **limit** the number of results, but it doesn't necessarily has to find those many results.
210+
The database knows that we want to **limit** the number of results, but it doesn't necessarily have to find that many results.
211211

212-
## Run the Program with the Last Batch on the Comamnd Line
212+
## Run the Program with the Last Batch on the Command Line
213213

214214
And if we run it in the command line, it will output:
215215

@@ -271,7 +271,7 @@ Of course, you can also combine `.limit()` and `.offset()` with `.where()` and o
271271

272272
</details>
273273

274-
## Run the Program with Limit and Where on the Comamnd Line
274+
## Run the Program with Limit and Where on the Command Line
275275

276276
If we run it on the command line, it will find all the heroes in the database with an age above 32. That would normally be 4 heroes.
277277

docs/tutorial/select.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,9 +97,9 @@ FROM hero
9797

9898
That would end up in the same result. Although we won't use that for **SQLModel**.
9999

100-
### `SELECT` Less Columns
100+
### `SELECT` Fewer Columns
101101

102-
We can also `SELECT` less columns, for example:
102+
We can also `SELECT` fewer columns, for example:
103103

104104
```SQL
105105
SELECT id, name
@@ -150,7 +150,7 @@ Another variation is that most of the SQL keywords like `SELECT` can also be wri
150150

151151
This is the interesting part. The tables returned by SQL databases **don't have to exist** in the database as independent tables. 🧙
152152

153-
For example, in our database, we only have one table that has all the columns, `id`, `name`, `secret_name`, `age`. And here we are getting a result table with less columns.
153+
For example, in our database, we only have one table that has all the columns, `id`, `name`, `secret_name`, `age`. And here we are getting a result table with fewer columns.
154154

155155
One of the main points of SQL is to be able to keep the data structured in different tables, without repeating data, etc, and then query the database in many ways and get many different tables as a result.
156156

docs/tutorial/update.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ In a similar way to `SELECT` statements, the first part defines the columns to w
3939

4040
And the second part, with the `WHERE`, defines to which rows it should apply that update.
4141

42-
In this case, as we only have one hero with the name `"Spider-Boy"`, it will only apply the udpate in that row.
42+
In this case, as we only have one hero with the name `"Spider-Boy"`, it will only apply the update in that row.
4343

4444
!!! info
4545
Notice that in the `UPDATE` the single equals sign (`=`) means **assignment**, setting a column to some value.
@@ -70,7 +70,7 @@ After that update, the data in the table will look like this, with the new age f
7070
</table>
7171

7272
!!! tip
73-
It will probably be more common to find the row to update by Id, for example:
73+
It will probably be more common to find the row to update by `id`, for example:
7474

7575
```SQL
7676
UPDATE hero
@@ -340,7 +340,7 @@ Now let's review all that code:
340340

341341
The update process with **SQLModel** is more or less the same as with creating new objects, you add them to the session, and then commit them.
342342

343-
This also means that you can update several fields (atributes, columns) at once, and you can also update several objects (heroes) at once:
343+
This also means that you can update several fields (attributes, columns) at once, and you can also update several objects (heroes) at once:
344344

345345
```{ .python .annotate hl_lines="15-17 19-21 23" }
346346
# Code above omitted 👆

docs/tutorial/where.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ In the example above we are using two equal signs (`==`). That's called the "**e
271271
!!! tip
272272
An **operator** is just a symbol that is put beside one value or in the middle of two values to do something with them.
273273

274-
`==` is called **equality** operator because it checks if two things are **equal**.
274+
`==` is called the **equality** operator because it checks if two things are **equal**.
275275

276276
When writing Python, if you write something using this equality operator (`==`) like:
277277

0 commit comments

Comments
 (0)