Options
December 8, 2021 ยท View on GitHub
dbw supports variadic
Option function
parameters for the vast majority of its operations. See the dbw package
docs for more
information about which
Option functions are
supported for each operation.
// just one example of variadic options: an update
// using WithVersion and WithDebug options
rw.Update(ctx, &user, dbw.WithVersion(10), dbw.WithDebug(true))