Commit Graph

282 Commits

Author SHA1 Message Date
honglei
f3e7811a80 get_column_from_field support function 2023-08-15 18:13:24 +08:00
honglei
46b130dfb7 fix isort error for import types 2023-08-15 01:30:56 +08:00
honglei
710e92b285 black it 2023-08-15 01:22:53 +08:00
honglei
fa8902c778 add type hints for func is_optional_or_union 2023-08-15 01:13:56 +08:00
honglei
a0b84c574d avoid compare types:FunctionType 2023-08-15 00:59:49 +08:00
honglei
ce0064b286 python version for types.UnionType/Annotated 2023-08-15 00:28:01 +08:00
honglei
a22dac8113 avoid get_args directly 2023-08-14 23:02:32 +08:00
honglei
9da0407609 support 3.9/use get_args 2023-08-14 21:03:41 +08:00
honglei
347e052656 support str|None , mapped_column, AnyURL 2023-08-12 19:52:59 +08:00
Santiago Martinez
c99c1a9b1e Make sure tests pass in all supported python versions 2023-08-09 12:29:23 +01:00
Santiago Martinez
179183c018 Fix linting issues 2023-08-09 01:43:50 +01:00
Santiago Martinez
972ee56fde Fix fastapi tests 2023-08-09 01:43:36 +01:00
Anton De Meester
40bcdfecff Get all tests except for openapi working 2023-08-06 08:01:04 +00:00
Anton De Meester
82888160ac Make all tests but fastapi work 2023-08-06 08:01:04 +00:00
Anton De Meester
43d5d41a29 Linting 2023-08-06 08:01:04 +00:00
Anton De Meester
6955600120 Formatting 2023-08-06 08:01:04 +00:00
Anton De Meester
a7f8a27c20 Upgrade to Pydantic 2
Change imports
Undefined => PydanticUndefined
Update SQLModelMetaclass and SQLModel __init__ and __new__ functions
Update SQL Alchemy type inference
2023-08-06 08:01:04 +00:00
Mohamed Farahat
b1848af842 formatting and remove unused type 2023-08-06 08:01:04 +00:00
Peter Landry
5455c1abe5 Fix signature for Session.get 2023-08-06 08:01:04 +00:00
Peter Landry
fc120b212d Use ForUpdateArg from sqlalchemy 2023-08-06 08:01:04 +00:00
Peter Landry
a4e4546a8c Fix Tuple in jinja template as well 2023-08-06 08:01:04 +00:00
Peter Landry
494a89bd1d Another instance of non-optional execution_options 2023-08-06 08:01:04 +00:00
Peter Landry
6f5248124b Execution options are not Optional in SA 2023-08-06 08:01:04 +00:00
Peter Landry
472f7586ea Use Dict type instead of Mapping for SqlAlchemy compat 2023-08-06 08:01:04 +00:00
Peter Landry
6096d58946 _Select expects a Tuple[Any, ...] 2023-08-06 08:01:04 +00:00
Peter Landry
717d94a01d Result seems well enough typed in SqlAlchemy now we can simply shim over 2023-08-06 08:00:39 +00:00
Peter Landry
5942527886 Remove unused type ignore 2023-08-06 08:00:39 +00:00
Peter Landry
39efab835d Result expects a type Tuple[_T] 2023-08-06 08:00:39 +00:00
Mohamed Farahat
3379d26580 fix jinja2 template 2023-08-06 08:00:39 +00:00
Mohamed Farahat
e7481ec5fb update to latest sqlalchemy version 2023-08-06 08:00:26 +00:00
Mohamed Farahat
d8ddc04023 add the new Subquery class 2023-08-06 08:00:26 +00:00
Mohamed Farahat
05b1f45ec0 resolving @sbor23 comments 2023-08-06 08:00:26 +00:00
farahats9
b671ffdb33 Update sqlmodel/sql/expression.py
Co-authored-by: Stefan Borer <stefan.borer@gmail.com>
2023-08-06 08:00:26 +00:00
Mohamed Farahat
c8b68d9925 reflecting python 3.6 deprecation in docs and tests 2023-08-06 08:00:14 +00:00
Mohamed Farahat
b9cf129188 fix some linting errors 2023-08-06 07:58:43 +00:00
Mohamed Farahat
c634631ab1 migration to sqlalchemy 2.0 2023-08-06 07:57:41 +00:00
github-actions
088164ef2a 📝 Update release notes 2023-08-01 09:19:41 +00:00
Sebastián Ramírez
1e2fd10047
👷 Update docs deployments to Cloudflare (#630) 2023-08-01 11:18:53 +02:00
github-actions
30a9c23a34 📝 Update release notes 2023-07-31 19:53:00 +00:00
github-actions
da29f7940d 📝 Update release notes 2023-07-31 19:52:51 +00:00
github-actions
40007c80da 📝 Update release notes 2023-07-31 19:48:54 +00:00
Sebastián Ramírez
e246ae8864
👷 Update CI debug mode with Tmate (#629) 2023-07-31 19:48:21 +00:00
github-actions
aaa54492c1 📝 Update release notes 2023-07-31 19:39:15 +00:00
Sebastián Ramírez
73fa81af74
👷 Update latest changes token (#616) 2023-07-31 19:38:43 +00:00
Sebastián Ramírez
a21d5c85a3
👷‍♂️ Upgrade CI for docs (#628) 2023-07-31 17:15:43 +02:00
Sebastián Ramírez
02bd7ebffd
🗑️ Deprecate Python 3.6 and upgrade Poetry and Poetry Version Plugin (#627) 2023-07-29 12:32:47 +02:00
github-actions
43a689d369 📝 Update release notes 2023-02-21 11:02:54 +00:00
Sebastián Ramírez
810236c26c
⬆️ Upgrade analytics (#558) 2023-02-21 11:02:18 +00:00
github-actions
33e00c3ab3 📝 Update release notes 2023-02-03 17:53:01 +00:00
Sebastián Ramírez
5c9a3b3b21
📝 Update help SQLModel docs (#548) 2023-02-03 18:52:25 +01:00