FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

add support async postgres driver by fourteekey · Pull Request #320 · testcontainers/testcontainers-python · GitHub

add support async postgres driver - #320

Closed
fourteekey wants to merge 6 commits into
testcontainers:mainfrom
fourteekey:master
Closed

add support async postgres driver#320
fourteekey wants to merge 6 commits into
testcontainers:mainfrom
fourteekey:master

Conversation

Copy link
Copy Markdown

No description provided.

Comment thread core/testcontainers/core/generic.py Outdated
fourteekey requested a review from pffijt March 16, 2023 11:20

Copy link
Copy Markdown
Author

@pffijt
Do you have any questions or comments about commits?

tillahoffmann left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Thanks for the contribution. Added a few inline questions.

Comment thread postgres/setup.py Outdated
@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))

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

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).

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

@fourteekey, could you please address this question?

Copy link
Copy Markdown
Contributor

Unresolved some of the outstanding questions, @fourteekey. We'll also have to regenerate the lock files in requirements.txt. See step three of https://github.com/testcontainers/testcontainers-python#contributing-a-new-feature for details.

Copy link
Copy Markdown
Author

@tillahoffmann

All questions have been resolved.
I can't regenerate the lock files without approve, I got error: RuntimeError: Could not find a workflow. Has the GitHub Action run completed? If youare a first-time contributor, a contributor has to approve your changesbefore Actions can run.

Copy link
Copy Markdown
Member

closing in favor of #445 because i believe it will handle this use case, let me know if this is not the case

alexanderankin pushed a commit that referenced this pull request Mar 10, 2024
…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 <jason@opscanvas.com>
alexanderankin pushed a commit that referenced this pull request Mar 11, 2024
…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 <jason@opscanvas.com>
bearrito pushed a commit to bearrito/testcontainers-python that referenced this pull request Mar 30, 2024
…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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Creating a Postgres contrainer with an async driver fails

4 participants


Back | FazBrowse Home | New Git URL