faillint
faillint copied to clipboard
Possibility to detect function from a struct
I'd like a way to block github.com/jmoiron/sqlx, struct DB, function Select, Exec, Must*
- Must* functions are dangerous in a service context (assuming you don't have
recovermiddleware) - Select, Exec, and a few others don't take a context, we need to use
*Context(for cancellation aware versions.
The issue is that these aren't top level functions or vars, but are nested inside an *sqlx.DB.
Wanted expression:
github.com/jmoiron/sqlx.DB.{Select,Exec,Must*}