database

package
v0.0.0-...-04b7820 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2024 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DB *gorm.DB

Functions

func Connect

func Connect(config *Config)

func RunManualMigration

func RunManualMigration(dbURL string)

func WithMetrics

func WithMetrics(operation string) func(func() error) error

Optional: Add helper functions to wrap common database operations with metrics

Types

type Config

type Config struct {
	Host     string
	Port     string
	Password string
	User     string
	DBName   string
	SSLMode  string
}

Jump to

Keyboard shortcuts

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