You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
The template follows the 2.0 syntax (as of SQLAlchemy 1.4.x), 2.0 has entered beta, we should look to move to 2.0 as soon as it's released to ensure we don't lag behind.
While we are there we should also move up Pydantic to v2 which will be dependant on when FastAPI targets the version.
Describe the solution you'd like
Upgrade to SQLAlchemy 2 and assess any syntactical changes required
Upgrade to Pydantic 2 and see if there are any syntactical changes requires
Validate that the Base API still works as expected
Document any required changes for migration of existing applications
Describe alternatives you've considered
Not applicable. This is a request for an upgrade
The text was updated successfully, but these errors were encountered:
sqlalchemy is moving to a declartive syntax, which uses the python type annotation
this is much cleaner and makes the code read a lot better and consistentn with
where fastapi is headed and pydantic
the db package now uses the class as opposed to the old declarative_base() method
the user model has been moved to using the syntax
this is the first of the work done on #54
FastAPI is in beta with pydantic v2 support, follow the discussion or beta releases, this will mark an urgency to migrate the stack over these technologies.
moves fastapi and pydantic to the bleeding edge to start migration
of the codebase to use these libraries, this will be a breaking
change and should not be merged in until everything is stable
Is your feature request related to a problem? Please describe.
The template follows the 2.0 syntax (as of SQLAlchemy 1.4.x), 2.0 has entered beta, we should look to move to 2.0 as soon as it's released to ensure we don't lag behind.
While we are there we should also move up Pydantic to v2 which will be dependant on when FastAPI targets the version.
Describe the solution you'd like
Describe alternatives you've considered
Not applicable. This is a request for an upgrade
The text was updated successfully, but these errors were encountered: