databasetest

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package databasetest provides PostgreSQL databases for tests.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDatabase

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

NewDatabase returns an isolated PostgreSQL database with the projection schema applied. The connection pool is closed 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