GetPg17Container creates a PostgreSQL 17 container for testing. PG17 is required for features absent in 16 — notably MERGE ... RETURNING.
(ctx context.Context)
| 109 | // GetPg17Container creates a PostgreSQL 17 container for testing. PG17 is required |
| 110 | // for features absent in 16 — notably MERGE ... RETURNING. |
| 111 | func GetPg17Container(ctx context.Context) (*Container, error) { |
| 112 | return getPgContainerWithImage(ctx, "postgres:17-alpine") |
| 113 | } |
| 114 | |
| 115 | func getPgContainerWithImage(ctx context.Context, image string) (retC *Container, retErr error) { |
| 116 | req := testcontainers.ContainerRequest{ |
no test coverage detected