database

package
v0.0.0-...-ae6e605 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitDB

func InitDB() *sql.DB

InitDB opens a db connection, runs migrations, and exits if anything goes wrong.

func OpenTestDB

func OpenTestDB(t *testing.T) (*sql.DB, func())

OpenTestDB returns a transactional database rolled back when it is closed. The returned function handles closing the database.

Types

This section is empty.

Jump to

Keyboard shortcuts

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