Is there anything in the Sequel API which allows me to specify an index to use?
The generated SQL should look something like this:
SELECT * FROM Users WITH (INDEX(idx_name))
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Sequel doesn’t have explicit support for that syntax, but you can fake it:
It’s not going to be perfect, though (joins will probably break it). It’s not difficult to modify the adapter to add direct support for that syntax in the DSL, FWIW.