-
Notifications
You must be signed in to change notification settings - Fork 327
add support async postgres driver #320
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
Conversation
@pffijt |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the contribution. Added a few inline questions.
@wait_container_is_ready(*ADDITIONAL_TRANSIENT_ERRORS) | ||
def _connect(self) -> None: | ||
import sqlalchemy | ||
engine = sqlalchemy.create_engine(self.get_connection_url(driver=self.DEFAULT_DRIVER)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we just use the super
call here? It looks like the method body is the same as in the parent class (except for the driver argument which is already handled in the updated get_connection_url
).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@fourteekey, could you please address this question?
Unresolved some of the outstanding questions, @fourteekey. We'll also have to regenerate the lock files in |
All questions have been resolved. |
closing in favor of #445 because i believe it will handle this use case, let me know if this is not the case |
…445) Updates the pg testcontainer implementation to not use (and not install) SQLAlchemy nor psycopg2. Closes: #340 Closes: #336 Closes: #320 --------- Co-authored-by: Jason Turim <[email protected]>
…445) Updates the pg testcontainer implementation to not use (and not install) SQLAlchemy nor psycopg2. Closes: #340 Closes: #336 Closes: #320 --------- Co-authored-by: Jason Turim <[email protected]>
…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 <[email protected]>
No description provided.