292 Commits

Author SHA1 Message Date
Sebastián Ramírez
690f9cf5e1
🔨 Update docs Termynal scripts to not include line nums for local dev (#1018) 2024-07-17 02:15:42 +00:00
github-actions
fca0621098 📝 Update release notes 2024-07-17 01:52:20 +00:00
Esteban Maya
95936bb508
Add official UUID support, docs and tests, internally using new SQLAlchemy 2.0 types (#992)
*  Add UUID support from sqlalchemy 2.0 update

* ⚰️ Remove dead code for GUID old support

* 📝 Add documentation for UUIDs

* 🧪 Add test for UUIDs field definition and support

* 🎨 [pre-commit.ci] Auto format from pre-commit.com hooks

* ✏️ Fix prerequisites docs for uuid

* ♻️ Update UUID source examples for consistency

Keep consistency with other examples, functions without parameters, and printing info that shows and explains the UUID results (and can also be tested later)

* 📝 Add source examples for selecting UUIDs with session.get()

* 📝 Re-structure UUID docs

* Explain the concepts at the beggining before using them.
* Explain how UUIDs can be used and trusted.
* Explain why UUIDs could be generated on the code, and how they can be used for distributed systems.
* Explain how UUIDs can prevent information leakage.
* Warn about UUIDs storage size.
* Explain that uuid is part of the standard library.
* Explain how default_factory works.
* Explain that creating an instance would generate a new UUID, before it is sent to the DB. This is included and shown in the example, the UUID is printed before saving to the DB.
* Remove sections about other operations that would behave the same as other fields and don't need additional info from what was explained in previous chapters.
* Add two examples to select using UUIDs, similar to the previous ones, mainly to be able to use them in the tests and ensure that it all works, even when SQLite stores the values as strings but the where() or the session.get() receive UUID values (ensure SQLAlchemy does the conversion correctly for SQLite).
* Add an example terminal run of the code, with comments.
* Simplify the ending to keep only the information that wasn't there before, just the "Learn More" with links.

*  Refactor tests with new printed code, extract and check that UUIDs are used in the right places.

*  Add tests for the new extra UUID examples, for session.get()

* 🎨 [pre-commit.ci] Auto format from pre-commit.com hooks

* 📝 Rename variable in example for Python 3.7+ for consistency with 3.10+ (I missed that change before)

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
2024-07-16 20:52:03 -05:00
github-actions
3b889e09f7 📝 Update release notes 2024-06-21 02:17:19 +00:00
Toby Penner
600da0a25c
✏️ Fix internal link in docs/tutorial/create-db-and-table.md (#911) 2024-06-20 21:16:56 -05:00
github-actions
96bfd855f8 📝 Update release notes 2024-06-05 01:52:54 +00:00
Alejandra
8416508d79
✏️ Add missing step in create-db-and-table-with-db-browser.md (#976) 2024-06-05 01:52:36 +00:00
github-actions
f1bfebc9e2 📝 Update release notes 2024-06-05 00:00:30 +00:00
Lucien O
1263024be5
✏️ Fix typo in docs/tutorial (#943) 2024-06-04 19:00:14 -05:00
github-actions
23869cab0d 📝 Update release notes 2024-06-04 23:58:51 +00:00
Mieszko Bańczerowski
24e76c7a13
✏️ Fix typo in docs/tutorial/relationship-attributes/index.md (#880) 2024-06-04 18:58:27 -05:00
github-actions
6e7e553963 📝 Update release notes 2024-06-04 23:57:10 +00:00
github-actions
8703539bf0 📝 Update release notes 2024-06-04 23:48:20 +00:00
Alejandra
f6ad19b1a7
✏️ Update pip installation command in tutorial (#975) 2024-06-04 23:48:02 +00:00
Sebastián Ramírez
4590963e88 🔖 Release version 0.0.19 2024-06-03 22:26:53 -05:00
github-actions
883cbe3a8d 📝 Update release notes 2024-06-04 03:22:28 +00:00
github-actions
e2f646dea5 📝 Update release notes 2024-06-04 03:19:04 +00:00
github-actions
ceac7bc2e8 📝 Update release notes 2024-06-04 02:48:00 +00:00
github-actions
9f3af8507e 📝 Update release notes 2024-06-04 02:35:16 +00:00
github-actions
d5cba6e358 📝 Update release notes 2024-06-04 01:39:25 +00:00
github-actions
71de44daba 📝 Update release notes 2024-06-04 01:34:41 +00:00
github-actions
866d9ecb29 📝 Update release notes 2024-06-04 00:39:40 +00:00
github-actions
a319952be1 📝 Update release notes 2024-06-03 23:56:49 +00:00
Soof Golan
662bd641b8
✏️ Fix broken link to @dataclass_transform (now PEP 681) in docs/features.md (#753)
Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
Co-authored-by: Patrick Arminio <patrick.arminio@gmail.com>
2024-06-03 23:56:30 +00:00
github-actions
dcf4f58e81 📝 Update release notes 2024-05-10 21:00:41 +00:00
github-actions
df0f834227 📝 Update release notes 2024-05-07 18:32:44 +00:00
Sebastián Ramírez
c13b71056e 📝 Update release notes 2024-04-29 23:29:21 -07:00
Sebastián Ramírez
900e0d3371 🔖 Release version 0.0.18 2024-04-29 23:25:02 -07:00
github-actions
a280b58c10 📝 Update release notes 2024-04-30 06:22:46 +00:00
github-actions
39cbf27904 📝 Update release notes 2024-04-30 00:01:02 +00:00
Sebastián Ramírez
0431c5bb26 🔖 Release version 0.0.17 2024-04-29 16:44:21 -07:00
github-actions
1c4f425f17 📝 Update release notes 2024-04-29 23:35:03 +00:00
github-actions
32353eeb07 📝 Update release notes 2024-04-29 23:26:22 +00:00
github-actions
570cd9f10c 📝 Update release notes 2024-04-29 22:58:36 +00:00
github-actions
f67867f974 📝 Update release notes 2024-04-29 22:11:20 +00:00
github-actions
6151f23e15 📝 Update release notes 2024-04-08 23:08:14 +00:00
Esteban Maya
1eb40b1f33
📝 Update ModelRead to ModelPublic documentation and examples (#885)
Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
2024-04-08 18:07:48 -05:00
github-actions
fa79856a4b 📝 Update release notes 2024-04-08 22:52:39 +00:00
github-actions
c75743d9d3 📝 Update release notes 2024-04-02 01:51:04 +00:00
github-actions
51df778420 📝 Update release notes 2024-03-26 17:35:41 +00:00
Sebastián Ramírez
9d0b8b6a93 📝 Update release notes 2024-03-21 17:54:34 -05:00
github-actions
0e3154a553 📝 Update release notes 2024-03-21 22:49:58 +00:00
Sebastián Ramírez
9141c8a920
Add source examples for Python 3.10 and 3.9 with updated syntax (#842)
Co-authored-by: Esteban Maya Cadavid <emayacadavid9@gmail.com>
2024-03-21 17:49:38 -05:00
github-actions
4c3f242ae2 📝 Update release notes 2024-03-13 19:31:41 +00:00
Sebastián Ramírez
0a80166b81
🔥 Remove Jina QA Bot as it has been discontinued (#840) 2024-03-13 20:31:20 +01:00
Sebastián Ramírez
6b562358fc 🔖 Release version 0.0.16 2024-02-17 14:53:16 +01:00
Sebastián Ramírez
3d483921fe 📝 Update release notes 2024-02-17 14:52:43 +01:00
github-actions
2abb798a22 📝 Update release notes 2024-02-17 13:49:59 +00:00
Sebastián Ramírez
fa12c5d87b
Add new method sqlmodel_update() to update models in place, including an update parameter for extra data (#804) 2024-02-17 14:49:39 +01:00
Sebastián Ramírez
7fec884864 🔖 Release version 0.0.15 2024-02-17 14:36:12 +01:00