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
Cannot compile DropTable and CreateTable queries #93
Comments
I dont run migrations in asyncio. So this has never been supported. This repo doesn't currently support everything sqlalchemy supports, only a subset. It looks like DropTable isnt "compiled", but rather an orm feature. |
So, any ideas about how to create and drop tables between test cases? Is it really possible or we need to apply migrations to the database first? The only solution I know is to manually iterate over the list of tables and create/drop them compiling the statements: DropTable(table).compile(dialect=postgresql.dialect()) |
So, looking at this error a second time, it looks like the issue might be that droptable compiled doesn't have any params. |
This has been merged and is in version 0.25.0 |
Hello!
I try to create table via this code:
and got an error from asyncpgsa
Same code using sqlalchemy works fine:
Thanks!
The text was updated successfully, but these errors were encountered: