Repository navigation
Commit 5afa40f
docs: SQLAlchemyInitPlugin to SQLAlchemyPlugin fixes SerializationException for docs (#3475)
* Update sqlalchemy_declarative_models.py
Now uses the SQLAlchemyPlugin in stead of SQLAlchemyInitPlugin, see #3464
* Update sqlalchemy_declarative_models.py
Ruff lint fixes
* Update docs/examples/contrib/sqlalchemy/sqlalchemy_declarative_models.py
create_all flag
Co-authored-by: Cody Fincher <204685+cofin@users.noreply.github.com>
* Update docs/examples/contrib/sqlalchemy/sqlalchemy_declarative_models.py
Co-authored-by: Peter Schutt <peter.github@proton.me>
* Update docs/examples/contrib/sqlalchemy/sqlalchemy_declarative_models.py
Further documentation
Co-authored-by: Peter Schutt <peter.github@proton.me>
* Update docs/examples/contrib/sqlalchemy/sqlalchemy_declarative_models.py
Co-authored-by: Peter Schutt <peter.github@proton.me>
* Update docs/examples/contrib/sqlalchemy/sqlalchemy_declarative_models.py
Co-authored-by: Cody Fincher <204685+cofin@users.noreply.github.com>
* Unit test for sqlalchemy_declarative_models.
* Now using option create_all=True for meta-data, on_startup for dummy data
* Lint ruff-format compatibility
* Fix for 3.9 and 3.10 wrt class declarations/typing
* Ruff format check
* Removed comments which might be heavy for example code
* For 3.8 compatibility wrt typing now using List in stead of list
* Replaced incorrect use of List instead of List
---------
Co-authored-by: Cody Fincher <204685+cofin@users.noreply.github.com>
Co-authored-by: Peter Schutt <peter.github@proton.me>1 parent 142bfe3 commit 5afa40f
3 files changed
Lines changed: 36 additions & 14 deletions
File tree
- docs/examples/contrib/sqlalchemy
- tests/examples/test_contrib/test_sqlalchemy
Lines changed: 21 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
1 | 4 | | |
2 | | - | |
| 5 | + | |
3 | 6 | | |
4 | 7 | | |
5 | | - | |
| 8 | + | |
| 9 | + | |
6 | 10 | | |
7 | 11 | | |
8 | 12 | | |
9 | 13 | | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
| 14 | + | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
21 | | - | |
| 22 | + | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
| |||
32 | 33 | | |
33 | 34 | | |
34 | 35 | | |
35 | | - | |
| 36 | + | |
36 | 37 | | |
37 | | - | |
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
42 | | - | |
43 | | - | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
44 | 50 | | |
45 | 51 | | |
46 | 52 | | |
47 | | - | |
| 53 | + | |
48 | 54 | | |
49 | 55 | | |
50 | 56 | | |
51 | 57 | | |
52 | 58 | | |
53 | 59 | | |
54 | 60 | | |
55 | | - | |
| 61 | + | |
| 62 | + | |
56 | 63 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
395 | 395 | | |
396 | 396 | | |
397 | 397 | | |
| 398 | + | |
398 | 399 | | |
399 | 400 | | |
400 | 401 | | |
| |||
Lines changed: 14 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
0 commit comments