pgtest

package
v0.11.1 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package pgtest provides utilities for testing code that interacts with PostgreSQL databases.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Setup

func Setup(t testing.TB) *sql.DB

Setup creates and returns a new PostgreSQL database connection for use in a test. The database is automatically cleaned up when the test ends.

Types

This section is empty.

Jump to

Keyboard shortcuts

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