honglei
|
4e89361f93
|
add test for Class hierarchy
|
2023-08-20 21:50:30 +08:00 |
|
honglei
|
6b7925d8ce
|
fix _is_field_noneable
|
2023-08-20 21:10:32 +08:00 |
|
honglei
|
6e89ad374b
|
black/isort for test_nullable.py
|
2023-08-16 23:21:40 +08:00 |
|
honglei
|
045f9bcc8a
|
add test for pydantic.AnyURL
|
2023-08-16 23:18:55 +08:00 |
|
honglei
|
fa8955c700
|
field required
|
2023-08-16 22:58:10 +08:00 |
|
honglei
|
72dc89d92b
|
field is required by default, while nullable=True for Column
|
2023-08-16 22:32:28 +08:00 |
|
honglei
|
6a5f373862
|
Revert "get_column_from_field:sa_column>field attribute>field annotation"
|
2023-08-16 22:20:43 +08:00 |
|
honglei
|
1c626cb8c2
|
Merge branch 'main' of https://github.com/honglei/sqlmodel
|
2023-08-16 21:57:04 +08:00 |
|
Honglei
|
e919dc8e9e
|
Merge branch 'mbsantiago:main' into main
|
2023-08-16 21:26:13 +08:00 |
|
honglei
|
650534e847
|
Merge branch 'main' of https://github.com/honglei/sqlmodel
|
2023-08-16 21:23:29 +08:00 |
|
honglei
|
5b49f778c3
|
get_column_from_field:sa_column>field attribute>field annotation
|
2023-08-16 21:22:57 +08:00 |
|
Santiago Martinez
|
63e2692a87
|
Add importlib-metadata to dev-dependencies
|
2023-08-16 13:57:17 +01:00 |
|
Honglei
|
8cc628c2e1
|
Merge branch 'mbsantiago:main' into main
|
2023-08-15 22:39:01 +08:00 |
|
honglei
|
9e07c1c772
|
fix type check for sa_column
|
2023-08-15 22:38:03 +08:00 |
|
honglei
|
f3e7811a80
|
get_column_from_field support function
|
2023-08-15 18:13:24 +08:00 |
|
Santiago Martinez Balvanera
|
f67b414438
|
Merge pull request #1 from honglei/main
support str|None , mapped_column, AnyURL
|
2023-08-14 22:48:50 +01: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 |
|