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

Is it possible to use named parameter? #22

Open
rakib32 opened this issue Sep 29, 2020 · 1 comment
Open

Is it possible to use named parameter? #22

rakib32 opened this issue Sep 29, 2020 · 1 comment

Comments

@rakib32
Copy link

rakib32 commented Sep 29, 2020

Something like this

DB.Raw("SELECT * FROM users WHERE name1 = @name OR name2 = @name2 OR name3 = @name",
   sql.Named("name", "jinzhu1"), sql.Named("name2", "jinzhu2")).Find(&user)
@qustavo
Copy link
Owner

qustavo commented Sep 29, 2020

I don't know but I think that it's not possible

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

2 participants