Add automatic query logger function with additional execution details.

This commit is contained in:
go-jet 2022-01-12 19:03:50 +01:00
parent 7377e078cd
commit 4955bfc4b5
18 changed files with 266 additions and 59 deletions

View file

@ -23,5 +23,12 @@ type OrderByClause = jet.OrderByClause
// GroupByClause interface to use as input for GROUP_BY
type GroupByClause = jet.GroupByClause
// SetLogger sets automatic statement logging
// SetLogger sets automatic statement logging function
// Deprecated: use SetQueryLoggerFunc instead.
var SetLogger = jet.SetLoggerFunc
// SetQueryLoggerFunc sets automatic query logging function.
var SetQueryLoggerFunc = jet.SetQueryLoggerFunc
// QueryInfo contains information about executed query
type QueryInfo = jet.QueryInfo