MCPcopy Index your code
hub / github.com/bytebase/bytebase / GetPg17Container

Function GetPg17Container

backend/common/testcontainer/testcontainer.go:111–113  ·  view source on GitHub ↗

GetPg17Container creates a PostgreSQL 17 container for testing. PG17 is required for features absent in 16 — notably MERGE ... RETURNING.

(ctx context.Context)

Source from the content-addressed store, hash-verified

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

Callers 1

GetTestPg17ContainerFunction · 0.85

Calls 1

getPgContainerWithImageFunction · 0.85

Tested by

no test coverage detected