db

package
v0.0.0-...-949c8fb Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Database

type Database struct {
	*gorm.DB
}

func NewDatabase

func NewDatabase(lc fx.Lifecycle, deps DatabaseDeps) *Database

func (*Database) Close

func (d *Database) Close() error

type DatabaseDeps

type DatabaseDeps struct {
	fx.In

	Config *config.Config
}

type Driver

type Driver interface {
	Connect(cfg *config.Config) (*gorm.DB, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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