Title: Creating a Postgres contrainer with an async driver fails · Issue #263 · testcontainers/testcontainers-python · GitHub
Open Graph Title: Creating a Postgres contrainer with an async driver fails · Issue #263 · testcontainers/testcontainers-python
X Title: Creating a Postgres contrainer with an async driver fails · Issue #263 · testcontainers/testcontainers-python
Description: Hello, When creating a new database container, testcontainers automatically tries to connect to it here, but if I specify an async driver (e.g. PostgresContainer("postgres:14.4", driver="asyncpg")) sqlalchemy tries to use that and fails ...
Open Graph Description: Hello, When creating a new database container, testcontainers automatically tries to connect to it here, but if I specify an async driver (e.g. PostgresContainer("postgres:14.4", driver="asyncpg"))...
X Description: Hello, When creating a new database container, testcontainers automatically tries to connect to it here, but if I specify an async driver (e.g. PostgresContainer("postgres:14.4", driver=&...
Opengraph URL: https://github.com/testcontainers/testcontainers-python/issues/263
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Creating a Postgres contrainer with an async driver fails","articleBody":"Hello,\r\nWhen creating a new database container, testcontainers automatically tries to connect to it [here](https://github.com/testcontainers/testcontainers-python/blob/master/testcontainers/core/generic.py#L55), but if I specify an async driver (e.g. `PostgresContainer(\"postgres:14.4\", driver=\"asyncpg\")`) sqlalchemy tries to use that and fails because it's not in an async context. \r\nIs there any way to skip trying to connect to the database or fix it so it can also handle async context?","author":{"url":"https://github.com/SpyrosRoum","@type":"Person","name":"SpyrosRoum"},"datePublished":"2022-11-08T14:13:56.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":8},"url":"https://github.com/263/testcontainers-python/issues/263"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:3c3f0013-f16f-f60a-cde1-53b51d3a90af |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CF6C:38F4B9:1039F72:179B737:6A5633CC |
| html-safe-nonce | e7125dd4e19a7f231f62eda3e88e27c5a8b095a40444394dbdff3f5c9e5e5a22 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRjZDOjM4RjRCOToxMDM5RjcyOjE3OUI3Mzc6NkE1NjMzQ0MiLCJ2aXNpdG9yX2lkIjoiMzYwODYxNjc1Nzc4NTY3MDYwNCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 40bec0a096728942610756f535c5b10b03ef31939841f2171c202821455fe3ba |
| hovercard-subject-tag | issue:1440286051 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/testcontainers/testcontainers-python/263/issue_layout |
| twitter:image | https://opengraph.githubassets.com/d714c6b7a45230ffb0709748b54826076171d8054d1cc63787c5df13a323f070/testcontainers/testcontainers-python/issues/263 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d714c6b7a45230ffb0709748b54826076171d8054d1cc63787c5df13a323f070/testcontainers/testcontainers-python/issues/263 |
| og:image:alt | Hello, When creating a new database container, testcontainers automatically tries to connect to it here, but if I specify an async driver (e.g. PostgresContainer("postgres:14.4", driver="asyncpg"))... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | SpyrosRoum |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9d78ea552aac0685ca5f006d44f88166cbbf3bb96843f8da0c5a2c0b9908430b |
| turbo-cache-control | no-preview |
| go-import | github.com/testcontainers/testcontainers-python git https://github.com/testcontainers/testcontainers-python.git |
| octolytics-dimension-user_id | 13393021 |
| octolytics-dimension-user_login | testcontainers |
| octolytics-dimension-repository_id | 85802819 |
| octolytics-dimension-repository_nwo | testcontainers/testcontainers-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 85802819 |
| octolytics-dimension-repository_network_root_nwo | testcontainers/testcontainers-python |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 423b2fb76ac2b90de5ab599b7a76a0d2b2c83f24 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width