Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possibility to detect function from a struct #18

Open
titpetric opened this issue Jul 13, 2020 · 0 comments
Open

Possibility to detect function from a struct #18

titpetric opened this issue Jul 13, 2020 · 0 comments

Comments

@titpetric
Copy link

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 recover middleware)
  • 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*}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant