Documentation
¶
Overview ¶
Package pgtest starts throwaway, migrated Postgres containers for integration tests and cmd/eval. Ryuk is off on podman, so nothing reaps containers for us: Main, New and Start's callers always close what they start. Only tests and cmd/eval may link it (make lint-go checks the commands).
Index ¶
Constants ¶
View Source
const Image = "pgvector/pgvector:0.8.7-pg18-trixie@sha256:5895949dfcdf308eb0cd31c950c93c14895c77f33fbedfecf1fa511ab1d4bcd2"
Image is the dev stack's Postgres image; TestImageMatchesCompose keeps the two in sync.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DB ¶
DB is a running Postgres with every migration applied.
func Start ¶
Start runs a Postgres container and applies the migrations. On error nothing is left running.
Click to show internal directories.
Click to hide internal directories.