Dataset opts are frozen

2021-09-21 Thread ejt...@gmail.com
Hi, recently am toying with something which adds a bit of state to a Dataset, I came across this post: https://groups.google.com/g/sequel-talk/c/vSMu_ktUO4Y/m/Re_SBIryBwAJ, and your reply about using the opts Hash. Is the reply still valid since I am unable to modify the opts Hash no matter if

Re: Dataset#as_hash does a SELECT * even with columns specified?

2020-09-10 Thread ejt...@gmail.com
case. On Wednesday, September 9, 2020 at 10:07:20 PM UTC+8 Jeremy Evans wrote: > On Tuesday, September 8, 2020 at 10:14:17 PM UTC-7, ejt...@gmail.com > wrote: >> >> Hello, >> >> I've been using Dataset#as_hash with an Array for the value argument >> thi

Dataset#as_hash does a SELECT * even with columns specified?

2020-09-08 Thread ejt...@gmail.com
Hello, I've been using Dataset#as_hash with an Array for the value argument thinking it would it would avoiding fetching the rows in their entirety but read today here https://sequel.jeremyevans.net/rdoc/classes/Sequel/Dataset.html#method-i-as_hash which implies it will always SELECT *. I'm