testdb

package
v0.4.4 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package testdb hands tests an isolated database configuration.

Default backend is a throwaway SQLite file. Set KY_TEST_POSTGRES_DSN to run the same tests against a real Postgres instance; each caller gets its own schema, dropped on cleanup.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Config

func Config(t *testing.T) config.DatabaseConfig

Config returns a database config pointing at an isolated, empty database.

Types

This section is empty.

Jump to

Keyboard shortcuts

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