testdb

package
v0.0.0-...-16b5886 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(t *testing.T) (*gorm.DB, func())

New creates a new test database and returns a cleanup function.

Please note that a caller needs to import "gorm.io/driver/sqlite"; to avoid "gorm.io/driver/sqlite" being in caller's realse, need to manually import it by *_test.go files only.

Types

This section is empty.

Jump to

Keyboard shortcuts

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