<@U04UQ68083H> I'm just starting to look at docker...
# ory-copilot
m
@chilly-king-10285 I'm just starting to look at dockertest for running tests tied to our postgres database. Do we have an example using
pgxpool.Pool
instead of
sql.DB
? https://github.com/ory/dockertest/blob/v3/examples/PostgreSQL.md
b
A message from kapa.ai
I apologize, but the knowledge sources provided do not contain specific information about using
pgxpool.Pool
with dockertest for PostgreSQL database testing. The example you linked to uses
sql.DB
, but there's no direct mention of
pgxpool.Pool
in the given documents. However, I can provide some general information about Ory's use of dockertest: Ory does use dockertest for integration testing, as mentioned in the [Community resources](https://www.ory.sh/docs/ecosystem/community#community-projects) section: "Predefined dockertest libraries for Hydra, Kratos & Keto integration tests" Additionally, there are several community-contributed examples and articles about using dockertest with various databases, as listed in the [Community articles and tutorials](https://www.ory.sh/docs/ecosystem/community#community-articles-and-tutorials) section: - "Writing Tests for MongoDB using Dockertest in Go" - "Integration tests in Golang with dockertest" - "Go Package for better integration tests: Ory Dockertest" - "Using Dockertest with Golang" - "How to write a Go API Part 3: Testing With Dockertest" While these resources don't specifically address your question about
pgxpool.Pool
, they might provide some insights into how dockertest is used in the Ory ecosystem and could potentially be adapted for your specific use case with
pgxpool.Pool
. If you need a specific example using
pgxpool.Pool
, you might want to check the official Ory GitHub repositories or ask in the Ory community channels for more targeted assistance.