mysql

package
v0.0.0-...-6385ceb Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Mysql

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

func NewMysql

func NewMysql(ctx context.Context, cfg config.MySql, log logger.Logger) *Mysql

func (*Mysql) Close

func (mysql *Mysql) Close() error

func (*Mysql) Connect

func (mysql *Mysql) Connect() (*Mysql, error)

func (*Mysql) CreateByQuery

func (mysql *Mysql) CreateByQuery(ctx context.Context, query string, data interface{}) (int64, error)

func (*Mysql) FindByQuery

func (mysql *Mysql) FindByQuery(ctx context.Context, query string, dest interface{}, args ...interface{}) error

Jump to

Keyboard shortcuts

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