-
Notifications
You must be signed in to change notification settings - Fork 309
Design question / is a hard dependency on SqlAlchemy really necessary? #336
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
Yes, that's a good point. We should move away from a hard dependency on sqlalchemy as you suggested. Do you have thoughts on how to integrate that change? A PR would be very welcome! |
i thought to use |
Based on my experience maintaining TC for .NET, waiting for |
I put together a WIP here: https://github.com/logicbomb/testcontainers-python/pull/1/files You can see 2 possible implementations, one based on Also, would you all require a change to the way all databases are verified, or would you accept a change only for Postgres? |
You may want to have a look at the |
ooh, |
Yes, using |
…estcontainers#445) Updates the pg testcontainer implementation to not use (and not install) SQLAlchemy nor psycopg2. Closes: testcontainers#340 Closes: testcontainers#336 Closes: testcontainers#320 --------- Co-authored-by: Jason Turim <jason@opscanvas.com>
Hi,
It seems that the
_connect
method is causing the DbContainer project to take a hard dependency on SqlAlchemy. This is troublesome for those of us not using that package. Is it meant to do more than verify the database container is up & running? If not, maybe there's a more neutral way of checking like usingpg_isready
?testcontainers-python/testcontainers/core/generic.py
Line 31 in a2bc91e
thanks,
Jason
The text was updated successfully, but these errors were encountered: