On Thursday, October 26, 2017 at 12:44:57 PM UTC-7, Kawika wrote:
>
> Revisiting this, is it possible to store state along with a dataset in 
> 5.*? How could I accomplish that? Thanks
>

It's always possible to store additional state when creating a new dataset 
(not modifying an existing dataset):

  ds = ds.clone(:some_key=>some_value)
  ds.opts[:some_key]

Dataset state is stored in the opts hash.  As long as you don't use the 
same keys that Sequel uses, you won't run into problems.

Thanks,
Jeremy

-- 
You received this message because you are subscribed to the Google Groups 
"sequel-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sequel-talk.
For more options, visit https://groups.google.com/d/optout.

Reply via email to