Comments (5)
@nhumrich yeah, I've taken a closer look to the code of connection.py
and decided to create my first GitHub PR ;-) #94
Please take a look at that
This PR is related to the following issue #59
from asyncpgsa.
This has been merged and is in version 0.25.0
from asyncpgsa.
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.
I would accept a PR to support this, but since its a feature I dont use, I dont have the time to work on this myself.
from asyncpgsa.
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())
from asyncpgsa.
So, looking at this error a second time, it looks like the issue might be that droptable compiled doesn't have any params. compiled.params == None
. So, maybe this is a fixable bug. Might be worth adding a none check to connection.py line 60. Would you have time to take a look at this, and maybe add a test case for it?
from asyncpgsa.
Related Issues (20)
- Connect Error When using dsn and password contains '#' HOT 3
- Asyncpg connection are not returning to a pool
- Question about nested transaction (savepoint) HOT 2
- bindparam does not work HOT 4
- Does this package follow semantic versioning? HOT 1
- process_result_value callback for column type is not handled HOT 1
- Func with string params, IndeterminateDatatypeError HOT 2
- the right way to autoload/reflect HOT 7
- MockSAPool raises TypeError with latest asyncpg release HOT 1
- Incorrect version requirement in 0.27.0 for asyncpg HOT 1
- compile_query fails with sqlalchemy 1.4 HOT 5
- Missing releases after 0.25 version on github HOT 1
- Since 2.0 sqlalchemy doesn't support py-postgresql. Unavailable to use library: ImportError
- Using asyncpgsa with alembic in `env.py` HOT 1
- Version HOT 1
- rowcount for singleton after update invokation HOT 1
- Register asyncpgsa dialect in SQLAlchemy? HOT 1
- Support Sequence HOT 1
- Typings? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from asyncpgsa.