mirror of https://github.com/VinGarcia/ksql.git
Minor improvement to godoc
parent
8d57a16f9c
commit
9a065de4a5
|
@ -82,8 +82,11 @@ type loggerFn func(ctx context.Context, query string, params []interface{}, err
|
|||
//
|
||||
// Example Usage:
|
||||
//
|
||||
// // After injecting a logger into `ctx` all subsequent queries
|
||||
// // that use this context will be logged.
|
||||
// ctx = ksql.InjectLogger(ctx, ksql.Logger)
|
||||
//
|
||||
// // All the calls below will cause KSQL to log the queries:
|
||||
// var user User
|
||||
// db.Insert(ctx, usersTable, &user)
|
||||
//
|
||||
|
|
Loading…
Reference in New Issue