Replies: 1 comment 1 reply
-
By default, Sequel yields a hash for each row (via |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
If I execute a query with Sequel, is there a way to get back the raw results? Instead of an array of objects?
What I really want is:
Two problems with transforming the existing output to the output I actually want:
result.first.keys
then I do get back[:email, :name, :id]
however in general, I don't think there is any guarantee that these will match the order that the user requested them in (EMAIL, NAME, ID)?I've read the docs but have not seen anything like
db.fetch_raw
which might return the results as I want them. Any suggestions?Beta Was this translation helpful? Give feedback.
All reactions