Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 101f2ab

Browse filesBrowse files
authored
Merge branch 'main' into main
2 parents d520f4f + 1e69c00 commit 101f2ab
Copy full SHA for 101f2ab

7 files changed

+13-7Lines changed: 13 additions & 7 deletions

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎docs/contributing.md‎

Copy file name to clipboardExpand all lines: docs/contributing.md
+1-1Lines changed: 1 addition & 1 deletion
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ $ poetry shell
4242

4343
</div>
4444

45-
That will set up the environment variables needed dand will start a new shell with them.
45+
That will set up the environment variables needed and start a new shell with them.
4646

4747
#### Using your local SQLModel
4848

Collapse file

‎docs/db-to-code.md‎

Copy file name to clipboardExpand all lines: docs/db-to-code.md
+1-1Lines changed: 1 addition & 1 deletion
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ If the user provides this ID:
143143
2
144144
```
145145

146-
...the would be this table (with a single row):
146+
...the result would be this table (with a single row):
147147

148148
<table>
149149
<tr>
Collapse file

‎docs/release-notes.md‎

Copy file name to clipboardExpand all lines: docs/release-notes.md
+6Lines changed: 6 additions & 0 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22

33
## Latest Changes
44

5+
* ✏ Fix typo in `docs/tutorial/code-structure.md`. PR [#344](https://github.com/tiangolo/sqlmodel/pull/344) by [@marciomazza](https://github.com/marciomazza).
6+
* ✏ Fix typo in `docs/db-to-code.md`. PR [#155](https://github.com/tiangolo/sqlmodel/pull/155) by [@gr8jam](https://github.com/gr8jam).
7+
* ✏ Fix typo in `docs/contributing.md`. PR [#323](https://github.com/tiangolo/sqlmodel/pull/323) by [@Fardad13](https://github.com/Fardad13).
8+
* ✏ Fix typo in `docs/tutorial/fastapi/tests.md`. PR [#265](https://github.com/tiangolo/sqlmodel/pull/265) by [@johnhoman](https://github.com/johnhoman).
9+
* ✏ Fix typo in `docs/tutorial/where.md`. PR [#286](https://github.com/tiangolo/sqlmodel/pull/286) by [@jalvaradosegura](https://github.com/jalvaradosegura).
10+
* ✏ Fix typos in `docs/tutorial/fastapi/update.md`. PR [#268](https://github.com/tiangolo/sqlmodel/pull/268) by [@cirrusj](https://github.com/cirrusj).
511
* ✏ Fix typo in `docs/tutorial/fastapi/simple-hero-api.md`. PR [#247](https://github.com/tiangolo/sqlmodel/pull/247) by [@hao-wang](https://github.com/hao-wang).
612
* ✏ Fix typos in `docs/tutorial/automatic-id-none-refresh.md`, `docs/tutorial/fastapi/update.md`, `docs/tutorial/select.md`. PR [#185](https://github.com/tiangolo/sqlmodel/pull/185) by [@rootux](https://github.com/rootux).
713
* ✏ Fix typo in `docs/databases.md`. PR [#177](https://github.com/tiangolo/sqlmodel/pull/177) by [@seandlg](https://github.com/seandlg).
Collapse file

‎docs/tutorial/code-structure.md‎

Copy file name to clipboardExpand all lines: docs/tutorial/code-structure.md
+1-1Lines changed: 1 addition & 1 deletion
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ It has a value of `True` for editors and tools that analyze the code with the ty
198198

199199
But when Python is executing, its value is `False`.
200200

201-
So, we can us it in an `if` block and import things inside the `if` block. And they will be "imported" only for editors, but not at runtime.
201+
So, we can use it in an `if` block and import things inside the `if` block. And they will be "imported" only for editors, but not at runtime.
202202

203203
### Hero Model File
204204

Collapse file

‎docs/tutorial/fastapi/tests.md‎

Copy file name to clipboardExpand all lines: docs/tutorial/fastapi/tests.md
+1-1Lines changed: 1 addition & 1 deletion
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ But now we need to deal with a bit of logistics and details we are not paying at
8282

8383
This test looks fine, but there's a problem.
8484

85-
If we run it, it will use the same **production database** that we are using to store our very important **heroes**, and we will end up adding adding unnecesary data to it, or even worse, in future tests we could end up removing production data.
85+
If we run it, it will use the same **production database** that we are using to store our very important **heroes**, and we will end up adding unnecesary data to it, or even worse, in future tests we could end up removing production data.
8686

8787
So, we should use an independent **testing database**, just for the tests.
8888

Collapse file

‎docs/tutorial/fastapi/update.md‎

Copy file name to clipboardExpand all lines: docs/tutorial/fastapi/update.md
+2-2Lines changed: 2 additions & 2 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -218,11 +218,11 @@ And when getting the data with `hero.dict(exclude_unset=True)`, we would get:
218218
}
219219
```
220220

221-
So, we would use that value and upate the `age` to `None` in the database, **just as the client intended**.
221+
So, we would use that value and update the `age` to `None` in the database, **just as the client intended**.
222222

223223
Notice that `age` here is `None`, and **we still detected it**.
224224

225-
Also that `name` was not even sent, and we don't *accidentally* set it to `None` or something, we just didn't touch it, because the client didn't send it, so we are **perfectly fine**, even in these corner cases. ✨
225+
Also that `name` was not even sent, and we don't *accidentally* set it to `None` or something, we just didn't touch it, because the client didn't sent it, so we are **perfectly fine**, even in these corner cases. ✨
226226

227227
These are some of the advantages of Pydantic, that we can use with SQLModel. 🎉
228228

Collapse file

‎docs/tutorial/where.md‎

Copy file name to clipboardExpand all lines: docs/tutorial/where.md
+1-1Lines changed: 1 addition & 1 deletion
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -865,7 +865,7 @@ It would be an error telling you that
865865
866866
This is because as we are using pure and plain Python annotations for the fields, `age` is indeed annotated as `Optional[int]`, which means `int` or `None`.
867867

868-
By using this simple and standard Python type annotations We get the benefit of the extra simplicity and the inline error checks when creating or using instances. ✨
868+
By using this simple and standard Python type annotations we get the benefit of the extra simplicity and the inline error checks when creating or using instances. ✨
869869

870870
And when we use these special **class attributes** in a `.where()`, during execution of the program, the special class attribute will know that the comparison only applies for the values that are not `NULL` in the database, and it will work correctly.
871871

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.