On Thursday, February 28, 2019 at 11:36:16 AM UTC-8, Dimitri Pekarovsky 
wrote:
>
> Hi, all.
>
> I have my custom class for Money, that have exactly 3 fields. I want to 
> save it to table, say :transactions, where I want to have fields like 
> :money_amount, :money_currency, :money_exp.
>
> So this is like the class Transaction with fields 
> :id, :created_at, :serial, :money => <#Money {amount, currency, exp}>, 
> etc...
>
> And in the database the table :transactions have those fields
> :id, :created_at, :serial, :money_amount, :money_currency, :money_exp
>
> Is this possible witout brain breaking?
>
> Where to look in the docs?
>

The composition plugin handles 
this: 
https://sequel.jeremyevans.net/rdoc-plugins/classes/Sequel/Plugins/Composition.html

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