mysql

package
v0.0.0-...-7538a8c Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateUri

func GenerateUri(host, port, name, username, password string) string

Types

type Collections

type Collections interface {
	Table(name string) *gorm.DB
	Where(query interface{}, args ...interface{}) *gorm.DB
	First(out interface{}, where ...interface{}) *gorm.DB
	Create(value interface{}) *gorm.DB
	Delete(value interface{}, where ...interface{}) *gorm.DB
	Last(out interface{}, where ...interface{}) *gorm.DB
}

Collections is mysql's collection of function

type MySQL

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

func InitConnection

func InitConnection(masterDBUrl string, logger logger.Logger) MySQL

Jump to

Keyboard shortcuts

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