types

package
v0.0.74 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2021 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DBConfig

type DBConfig interface {
	GetDSN() string
}

type DBLog

type DBLog struct {
	Log SQLLoggerFunc
}

func (*DBLog) WriteLog

func (dbl *DBLog) WriteLog(sql string, sqlParams ...interface{})

type SQLLogger

type SQLLogger interface {
	WriteLog(sql string, sqlParams ...interface{})
}

type SQLLoggerFunc

type SQLLoggerFunc func(sql string, sqlParams ...interface{})

Log provides the log func used by generated queries.

Jump to

Keyboard shortcuts

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