db

package
v0.0.0-...-c3c18fe Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AutomateMigrations

func AutomateMigrations(db *gorm.DB)

func ConnectToDB

func ConnectToDB(configPath string) (*gorm.DB, error)

Types

type DBConfig

type DBConfig struct {
	Host     string `yaml:"host"`
	Port     int    `yaml:"port"`
	User     string `yaml:"user"`
	Password string `yaml:"password"`
	Name     string `yaml:"name"`
	Ssl      string `yaml:"sslmode"`
}

func LoadConfig

func LoadConfig(filePath string) (DBConfig, error)

Jump to

Keyboard shortcuts

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