jorm is an interface wrapper around gorm
jorm can replace gorm with very little code change, and allows the benefit of easier testing via mocks and the ability to trace a query with using the OpenTracing instrumentation by opentracing-gorm
To set the context simply call db.WithContext(ctx)
and use the db returned by that function