Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
type Option ¶
type Option interface {
// contains filtered or unexported methods
}
func WithLogFields ¶
func WithOutputQueryLogType ¶
func WithOutputQueryLogType(t OutputQueryLogType) Option
type OutputQueryLogType ¶
type OutputQueryLogType string
const ( // output log nothing OutputQueryLogTypeNone OutputQueryLogType = "none" // output log all query OutputQueryLogTypeAll OutputQueryLogType = "all" // output log only for select query OutputQueryLogTypeReadOnly OutputQueryLogType = "read" // output log only for insert/update/delete query OutputQueryLogTypeWriteOnly OutputQueryLogType = "write" )
func (OutputQueryLogType) AllowReadLog ¶
func (t OutputQueryLogType) AllowReadLog() bool
func (OutputQueryLogType) AllowWriteLog ¶
func (t OutputQueryLogType) AllowWriteLog() bool
Click to show internal directories.
Click to hide internal directories.