rgmysql

package
v1.0.18 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Start

func Start()

* @Content : 开启 * @Param : * @Return : * @Author : LiJunDong * @Time : 2022-03-20

Types

type Factory

type Factory struct {
	UniqId string
	// contains filtered or unexported fields
}

func New

func New(uniqId string, logger interface{}) *Factory

func (*Factory) New

func (f *Factory) New(dbName string) (*client, error)

type Logger

type Logger struct {
	logger.Writer
	logger.Config
	// contains filtered or unexported fields
}

func (Logger) Error

func (l Logger) Error(ctx context.Context, msg string, data ...interface{})

Error print error messages

func (Logger) Info

func (l Logger) Info(ctx context.Context, msg string, data ...interface{})

Info print info

func (Logger) LogMode

func (l Logger) LogMode(level logger.LogLevel) logger.Interface

LogMode log mode

func (Logger) Trace

func (l Logger) Trace(ctx context.Context, begin time.Time, fc func() (string, int64), err error)

Trace print sql message

func (Logger) Warn

func (l Logger) Warn(ctx context.Context, msg string, data ...interface{})

Warn print warn messages

type TableInterface

type TableInterface interface {
	TableName() string
}

Jump to

Keyboard shortcuts

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