database

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2025 License: MIT Imports: 2 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 interface {
	AutoMigrate() error
	Database() *gorm.DB
}

func NewDatabase

func NewDatabase(db *gorm.DB) Database

type MyDb

type MyDb struct {
	// contains filtered or unexported fields
}

func (*MyDb) AutoMigrate

func (m *MyDb) AutoMigrate() error

func (*MyDb) Database

func (m *MyDb) Database() *gorm.DB

Jump to

Keyboard shortcuts

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