embedded

package
v0.0.79 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package embedded provides a test-only embedded Postgres database for testing queries.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CancelFunc

type CancelFunc func()

CancelFunc is a function that can be called to clean up resources. Pass this to t.Cleanup.

func GetFakeStore

func GetFakeStore() (db.Store, CancelFunc, error)

GetFakeStore returns a new embedded Postgres database and a cancel function to clean up the database.

Jump to

Keyboard shortcuts

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