testing

package
v0.0.0-...-4dd99de Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OpenTestingDatabase

func OpenTestingDatabase() (*gorm.DB, func() error, error)

OpenTestingDatabase opens a new Gorm session onto a testing database. If the TESTING_DATABASE_DSN environment variable is set, that is used as the connection DSN otherwise an ephemeral database is created via docker.

A new pointer to a new gorm.DB instance is returned along with a function which must be called to close the instance.

Types

This section is empty.

Jump to

Keyboard shortcuts

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