dbtest

package
v0.0.0-...-e41e6a4 Latest Latest
Warning

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

Go to latest
Published: May 14, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package dbtest provides test database utilities with TimescaleDB support.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Open

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

Open opens a test database with migrations applied. Requires TimescaleDB extension to be available on the PostgreSQL server.

func OpenB

func OpenB(b *testing.B) *dbtest.DB

OpenB opens a test database for benchmarks with migrations applied. Requires TimescaleDB extension to be available on the PostgreSQL server.

func OpenWithoutMigrations

func OpenWithoutMigrations(t *testing.T) *dbtest.DB

OpenWithoutMigrations opens a test database without running migrations but still enables TimescaleDB extension for manual migration testing.

Types

This section is empty.

Jump to

Keyboard shortcuts

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