database

package
v0.0.0-...-90005dc Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateMysqlURIConnection

func GenerateMysqlURIConnection(
	config *util.Config,
) string

Types

type ISqlClient

type ISqlClient interface {
	OpenConnection() (*gorm.DB, error)
	CloseConnection(*gorm.DB)
}

type SqlClient

type SqlClient struct{}

func NewSQLClient

func NewSQLClient() *SqlClient

func (*SqlClient) OpenConnection

func (c *SqlClient) OpenConnection(uriConn string) (*gorm.DB, error)

Jump to

Keyboard shortcuts

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