Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DebugHook ¶
type DebugHook struct { // Verbose causes hook to print all queries (even those without an error). Verbose bool EmptyLine bool }
DebugHook is a query hook that logs an error with a query if there are any. It can be installed with:
db.AddQueryHook(pgext.DebugHook{})
func NewDebugHook ¶
func NewDebugHook() *DebugHook
func (DebugHook) AfterQuery ¶
func (*DebugHook) BeforeQuery ¶
Click to show internal directories.
Click to hide internal directories.