File tree Expand file tree Collapse file tree 2 files changed +10
-3
lines changed
Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change 2828)
2929
3030// Register our ocsql wrapper for the provided SQLite3 driver.
31- driverName, err = ocsql.Register (" sqlite3" , ocsql.WithOptions (ocsql. TraceAll ))
31+ driverName, err = ocsql.Register (" sqlite3" , ocsql.WithAllTraceOptions ( ))
3232if err != nil {
3333 log.Fatalf (" unable to register our ocsql driver: %v \n " , err)
3434}
Original file line number Diff line number Diff line change @@ -50,8 +50,15 @@ type TraceOptions struct {
5050 QueryParams bool
5151}
5252
53- // TraceAll has all tracing options enabled.
54- var TraceAll = TraceOptions {
53+ // WithAllTraceOptions enables all available trace options.
54+ func WithAllTraceOptions () TraceOption {
55+ return func (o * TraceOptions ) {
56+ * o = AllTraceOptions
57+ }
58+ }
59+
60+ // AllTraceOptions has all tracing options enabled.
61+ var AllTraceOptions = TraceOptions {
5562 AllowRoot : true ,
5663 Transaction : true ,
5764 Ping : true ,
You can’t perform that action at this time.
0 commit comments