Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Example with AsyncSession #276

Open
ricardo17coelho opened this issue May 16, 2022 · 4 comments
Open

Example with AsyncSession #276

ricardo17coelho opened this issue May 16, 2022 · 4 comments

Comments

@ricardo17coelho
Copy link

Hi everyone!

Can someone provide a example how it works with AsyncSession ?
Thx 🙏

@ryanermita
Copy link

the same challenge here, it seems that it's not working properly using async sqlalchemy.

@wonderbeyond
Copy link

Any progress?

@AlTosterino
Copy link

Bump!

@w20k
Copy link

w20k commented Jan 1, 2024

What helpped me was this. So, it does work with Async, don't have any issues yet or not tested everything 😄 :

make_versioned(user_cls=None)
Base: Type[DeclarativeMeta] = declarative_base()

All the needed tables were created:
event_categories
event_categories_version
transaction

configure_mappers()
await async_connection.run_sync(Base.metadata.drop_all)
await async_connection.run_sync(Base.metadata.create_all)

Hope it will help someone!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants