pgtest

package
v0.5.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 9, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package pgtest runs the Postgres that live tests share: one pgvector container per test binary (Ryuk reaps it on exit), with the extensions the brain store uses installed in public, and a schema per test.

Index

Constants

View Source
const Image = "pgvector/pgvector:0.8.7-pg17"

Image is the Postgres image of the brain store, session store, wire store and Temporal live tests.

Variables

This section is empty.

Functions

func Admin

func Admin(t testing.TB) *pgxpool.Pool

Admin is a pool on the container's default schema.

func Conn

func Conn(t testing.TB) string

Conn is the container's connection string; it starts the container on first use.

func Schema

func Schema(t testing.TB) string

Schema is a schema name no other test uses; it is dropped when t ends.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL