testdb

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package testdb creates disposable schemas for PostgreSQL integration tests.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Open

func Open(t *testing.T) *sql.DB

Open creates a database pool using a disposable test schema.

func URL

func URL(t *testing.T) string

URL creates a unique schema in an explicitly configured loopback test database. Tests skip when DASHBOARD_TEST_DATABASE_URL is absent.

Types

This section is empty.

Jump to

Keyboard shortcuts

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