Skip to content

Latest commit

 

History

History
23 lines (18 loc) · 774 Bytes

README_DEBUG.md

File metadata and controls

23 lines (18 loc) · 774 Bytes

Debug output

Go Reference

dbw provides a few ways to get debug output from the underlying database.

// enable debug output for all database operations
db, err := dbw.Open(dbw.Sqlite, "dbw.db") 
db.Debug(true)

Operations may take the WithDebug(...) option which will enable/disable debug output for the duration of that operation.

// enable debug output for a create operation
rw.Create(ctx, &user, dbw.WithDebug(true))