sql

package
v0.0.0-...-1b39580 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGormConnection

func NewGormConnection(cfg MySQL) (*gorm.DB, error)

Types

type DB

type DB struct {
	*sql.DB
}

func NewMySQLConnection

func NewMySQLConnection(c MySQL) (*DB, error)

type GormDB

type GormDB struct {
	*gorm.DB
}

type MySQL

type MySQL struct {
	Addr     string `mapstructure:"addr"`
	Username string `mapstructure:"username"`
	Password string `mapstructure:"password"`
	DBName   string `mapstructure:"dbName"`
}

Jump to

Keyboard shortcuts

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