database

package
v0.0.0-...-7b2cd09 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DB

type DB struct {
	Config config.Config
	// contains filtered or unexported fields
}

func New

func New(c config.Config) (*DB, error)

func SetUpTest

func SetUpTest(tb testing.TB, models ...any) *DB

func (*DB) Close

func (d *DB) Close() error

func (*DB) Connection

func (d *DB) Connection() *gorm.DB

func (*DB) Init

func (d *DB) Init() error

func (*DB) Migrate

func (d *DB) Migrate(models ...any) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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