Help us shape the future of Go! Take the 2026 Go Developer Survey

database

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ProdDB = "teamux/teamux.db"
	TestDB = "file::memory:?cache=shared"
)

Variables

This section is empty.

Functions

func GetProdDB

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

Types

type Connector

type Connector struct {
	DB  *gorm.DB
	Ctx context.Context
}

func GetTestDB

func GetTestDB() *Connector

FIXME: this causes cycle imports. Do it in the test package

Jump to

Keyboard shortcuts

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