database

package
v0.0.0-...-c8a774a Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InjectDB

func InjectDB(db *gorm.DB) gin.HandlerFunc

Types

type Connection

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

func (*Connection) DBConnect

func (conn *Connection) DBConnect(config helper.Config) (db *gorm.DB, err error)

type ConnectionInterface

type ConnectionInterface interface {
	DBConnect(config helper.Config) (db *gorm.DB, err error)
}

func New

func New() ConnectionInterface

Jump to

Keyboard shortcuts

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