Documentation
¶
Index ¶
- type Logger
- func (l *Logger) Close() error
- func (l *Logger) Driver() driver.Driver
- func (l *Logger) Exec(s string, i ...interface{}) (sql.Result, error)
- func (l *Logger) ExecContext(ctx context.Context, s string, i ...interface{}) (sql.Result, error)
- func (l *Logger) Query(s string, i ...interface{}) (*sql.Rows, error)
- func (l *Logger) QueryContext(ctx context.Context, s string, i ...interface{}) (*sql.Rows, error)
- func (l *Logger) QueryRow(s string, i ...interface{}) *sql.Row
- func (l *Logger) QueryRowContext(ctx context.Context, s string, i ...interface{}) *sql.Row
- func (l *Logger) SQL() *sql.DB
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Logger ¶
Logger decorates any dbClient.Client with query logging. All database operations are logged at DEBUG level, showing the query and its arguments. This is useful for debugging and monitoring.
func (*Logger) ExecContext ¶
func (*Logger) QueryContext ¶
func (*Logger) QueryRowContext ¶
Click to show internal directories.
Click to hide internal directories.