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

Function GetPgContainer

backend/common/testcontainer/testcontainer.go:105–107  ·  view source on GitHub ↗

GetPgContainer creates a PostgreSQL 16 container for testing.

(ctx context.Context)

Source from the content-addressed store, hash-verified

103
104// GetPgContainer creates a PostgreSQL 16 container for testing.
105func GetPgContainer(ctx context.Context) (*Container, error) {
106 return getPgContainerWithImage(ctx, "postgres:16-alpine")
107}
108
109// GetPg17Container creates a PostgreSQL 17 container for testing. PG17 is required
110// for features absent in 16 — notably MERGE ... RETURNING.

Callers 2

getPgContainerFunction · 0.92
GetTestPgContainerFunction · 0.85

Calls 1

getPgContainerWithImageFunction · 0.85

Tested by

no test coverage detected