Documentation
¶
Index ¶
- type Ext
- type QueryLogger
- func (p *QueryLogger) Beginx() (*sqlx.Tx, error)
- func (p *QueryLogger) Exec(query string, args ...interface{}) (sql.Result, error)
- func (p *QueryLogger) ExecContext(ctx context.Context, query string, args ...interface{}) (sql.Result, error)
- func (p *QueryLogger) Query(query string, args ...interface{}) (*sql.Rows, error)
- func (p *QueryLogger) QueryContext(ctx context.Context, query string, args ...interface{}) (*sql.Rows, error)
- func (p *QueryLogger) QueryRow(query string, args ...interface{}) *sql.Row
- func (p *QueryLogger) QueryRowContext(ctx context.Context, query string, args ...interface{}) *sql.Row
- func (p *QueryLogger) QueryRowx(query string, args ...interface{}) *sqlx.Row
- func (p *QueryLogger) QueryRowxContext(ctx context.Context, query string, args ...interface{}) *sqlx.Row
- func (p *QueryLogger) Queryx(query string, args ...interface{}) (*sqlx.Rows, error)
- func (p *QueryLogger) QueryxContext(ctx context.Context, query string, args ...interface{}) (*sqlx.Rows, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type QueryLogger ¶
QueryLogger wraps sql/sqlx methods with loggers.
func (*QueryLogger) Exec ¶
func (p *QueryLogger) Exec(query string, args ...interface{}) (sql.Result, error)
Exec .
func (*QueryLogger) ExecContext ¶
func (*QueryLogger) Query ¶
func (p *QueryLogger) Query(query string, args ...interface{}) (*sql.Rows, error)
Query .
func (*QueryLogger) QueryContext ¶
func (*QueryLogger) QueryRow ¶
func (p *QueryLogger) QueryRow(query string, args ...interface{}) *sql.Row
QueryRow .
func (*QueryLogger) QueryRowContext ¶
func (*QueryLogger) QueryRowx ¶
func (p *QueryLogger) QueryRowx(query string, args ...interface{}) *sqlx.Row
QueryRowx .
func (*QueryLogger) QueryRowxContext ¶
func (*QueryLogger) Queryx ¶
func (p *QueryLogger) Queryx(query string, args ...interface{}) (*sqlx.Rows, error)
Queryx .
func (*QueryLogger) QueryxContext ¶
Click to show internal directories.
Click to hide internal directories.