Documentation ¶
Index ¶
- type Opts
- type SQLLogger
- func (l SQLLogger) ConnBegin(connID, txID int64, opts driver.TxOptions)
- func (l SQLLogger) ConnClose(connID int64)
- func (l SQLLogger) ConnExec(connID int64, query string, args []driver.Value)
- func (l SQLLogger) ConnExecContext(connID int64, query string, args []driver.NamedValue)
- func (l SQLLogger) ConnPrepare(connID, stmtID int64, query string)
- func (l SQLLogger) ConnPrepareContext(connID int64, stmtID int64, query string)
- func (l SQLLogger) ConnQuery(connID, rowsID int64, query string, args []driver.Value)
- func (l SQLLogger) ConnQueryContext(connID int64, rowsID int64, query string, args []driver.NamedValue)
- func (l SQLLogger) Connect(connID int64)
- func (l SQLLogger) RowsClose(rowsID int64)
- func (l SQLLogger) StmtClose(stmtID int64)
- func (l SQLLogger) StmtExec(stmtID int64, query string, args []driver.Value)
- func (l SQLLogger) StmtExecContext(stmtID int64, query string, args []driver.NamedValue)
- func (l SQLLogger) StmtQuery(stmtID int64, rowsID int64, query string, args []driver.Value)
- func (l SQLLogger) StmtQueryContext(stmtID int64, rowsID int64, query string, args []driver.NamedValue)
- func (l SQLLogger) TxCommit(txID int64)
- func (l SQLLogger) TxRollback(txID int64)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Opts ¶
type Opts struct { ConnectLevel logrus.Level PrepareLevel logrus.Level QueryLevel logrus.Level ExecLevel logrus.Level CloseLevel logrus.Level TxLevel logrus.Level }
func DefaultOpts ¶
func DefaultOpts() Opts
type SQLLogger ¶
type SQLLogger struct {
// contains filtered or unexported fields
}
func (SQLLogger) ConnExecContext ¶
func (l SQLLogger) ConnExecContext(connID int64, query string, args []driver.NamedValue)
func (SQLLogger) ConnPrepare ¶
func (SQLLogger) ConnPrepareContext ¶
func (SQLLogger) ConnQueryContext ¶
func (SQLLogger) StmtExecContext ¶
func (l SQLLogger) StmtExecContext(stmtID int64, query string, args []driver.NamedValue)
func (SQLLogger) StmtQueryContext ¶
func (SQLLogger) TxRollback ¶
Click to show internal directories.
Click to hide internal directories.