postgrestest

package
v0.3.0-alpha.2 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2026 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Overview

Package postgrestest provides isolated real-PostgreSQL control for adapter integration tests. It is internal to Modary's adapter tree.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewControl

func NewControl(db *sql.DB) (databasecontrol.Control, error)

NewControl binds the PostgreSQL test control contract to an existing pool. The pool must already resolve its search_path to an isolated test schema.

func Open

func Open(t testing.TB) (*sql.DB, databasecontrol.Control)

Open creates an isolated schema and database/sql pool and removes the schema after the test. Tests are skipped only when the local integration service is unreachable.

Types

This section is empty.

Jump to

Keyboard shortcuts

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