sqlmodel
sqlmodel copied to clipboard
update async extension and add tests
- update _init_.py file so import can now be found using
from sqlmodel.ext.asyncio import AsyncSession
which obeys the import format of sqlalchemy https://github.com/tiangolo/sqlmodel/issues/626#issuecomment-1672311902 - add tests to AsyncSession utilizing testcontainers and asyncpg. This could introduce overhead for further testing because it requures a docker container to be spun up
- add a create_async_engine function to match its non async port of create_engine
Doesn't really address the documentation part of #626 but adds a few QOL features and sets up an easy testing framework for async features
@tiangolo https://github.com/pypa/setuptools/issues/3452 there is an issue with importlib which is causing mkdocs fail to run because importlib-metadata is lower than 4.3.0. Currently the project has importlib-metadata stuck on 4.2.0 due to the fact that mkdocs must be 1.2.x which is causing some checks to fail randomly. Could we update the mkdocs version?
📝 Docs preview for commit af84d75a42a491683b0a9709c96fb0475aea2e8b at: https://5fc91ef2.sqlmodel.pages.dev
@tiangolo I have merged 0.0.9 into the PR branch. All tests pass now :)
📝 Docs preview for commit fb600730723012fed8313f3a3502016f62064e78 at: https://f6ad04c2.sqlmodel.pages.dev
Fix conflicts
📝 Docs preview for commit 3e9bfd881ff370c7b7c0977531cf6d77854d8a9b at: https://c7b5a1e8.sqlmodel.pages.dev