goext/sq/listener.go

18 lines
555 B
Go
Raw Normal View History

2022-12-07 23:21:36 +01:00
package sq
type Listener interface {
2022-12-21 15:34:59 +01:00
PrePing() error
PreTxBegin(txid uint16) error
PreTxCommit(txid uint16) error
PreTxRollback(txid uint16) error
PreQuery(txID *uint16, sql *string, params *PP) error
PreExec(txID *uint16, sql *string, params *PP) error
PostPing(result error)
PostTxBegin(txid uint16, result error)
PostTxCommit(txid uint16, result error)
PostTxRollback(txid uint16, result error)
PostQuery(txID *uint16, sqlOriginal string, sqlReal string, params PP)
PostExec(txID *uint16, sqlOriginal string, sqlReal string, params PP)
2022-12-07 23:21:36 +01:00
}