utils

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2018 License: Apache-2.0 Imports: 5 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSQLXContextExecLogger

func NewSQLXContextExecLogger(execer sqlx.ExecerContext, entry *logrus.Entry) sqlx.ExecerContext

func NewSQLXContextQueryLogger

func NewSQLXContextQueryLogger(queryer sqlx.QueryerContext, entry *logrus.Entry) sqlx.QueryerContext

func NewSQLXExecLogger

func NewSQLXExecLogger(execer sqlx.Execer, entry *logrus.Entry) sqlx.Execer

func NewSQLXExtContextLogger

func NewSQLXExtContextLogger(ext sqlx.ExtContext, entry *logrus.Entry) sqlx.ExtContext

func NewSQLXExtLogger

func NewSQLXExtLogger(ext sqlx.Ext, entry *logrus.Entry) sqlx.Ext

func NewSQLXQueryLogger

func NewSQLXQueryLogger(queryer sqlx.Queryer, entry *logrus.Entry) sqlx.Queryer

Types

type SQLXPreparer

type SQLXPreparer interface {
	PrepareNamed(query string) (*sqlx.NamedStmt, error)
	Preparex(query string) (*sqlx.Stmt, error)
}

func NewSQLXPreparerLogger

func NewSQLXPreparerLogger(preparer SQLXPreparer, entry *logrus.Entry) SQLXPreparer

Jump to

Keyboard shortcuts

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