Documentation ¶
Index ¶
- type DB
- func (t *DB) Escape(str string) string
- func (t *DB) MetricEnabled() bool
- func (t *DB) Query(sql string, params ...interface{}) (rows []mysql.Row, res mysql.Result, err error)
- func (t *DB) QueryCtx(ctx context.Context, sql string, params ...interface{}) (rows []mysql.Row, res mysql.Result, err error)
- func (t *DB) QueryFirst(sql string, params ...interface{}) (row mysql.Row, res mysql.Result, err error)
- func (t *DB) QueryFirstCtx(ctx context.Context, sql string, params ...interface{}) (row mysql.Row, res mysql.Result, err error)
- func (t *DB) Quote(str string) string
- func (t *DB) TracingEnabled() bool
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DB ¶
type DB struct {
// contains filtered or unexported fields
}
func (*DB) MetricEnabled ¶ added in v1.2.5
func (*DB) QueryFirst ¶
func (*DB) QueryFirstCtx ¶
func (*DB) TracingEnabled ¶ added in v1.2.5
type Option ¶ added in v1.2.5
type Option = func(opt *option)
func EnableFingerprint ¶ added in v1.2.5
func EnableFingerprint() Option
func WithMetric ¶ added in v1.2.5
func WithQueryFormator ¶ added in v1.2.5
func WithTracing ¶ added in v1.2.5
Click to show internal directories.
Click to hide internal directories.