Serializing a nested struct to the database

74 views
Skip to first unread message

lau...@kabisa.nl

unread,
Jun 21, 2016, 11:02:28 AM6/21/16
to elixir-lang-talk
Hello,

I have a nested struct that contains "plain" values as well as Ecto models that I need serialized to the database. Is there any solution available out of the box, similar to Ruby's YAML::dump?

Thanks!

José Valim

unread,
Jun 21, 2016, 11:57:37 AM6/21/16
to elixir-l...@googlegroups.com
:erlang.term_to_binary and :erlang.binary_to_term.



José Valim
Skype: jv.ptec
Founder and Director of R&D

--
You received this message because you are subscribed to the Google Groups "elixir-lang-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elixir-lang-ta...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-lang-talk/0e1cdd21-6557-42f4-8ec6-88b7f3a2c1af%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

lau...@kabisa.nl

unread,
Jun 24, 2016, 5:46:40 AM6/24/16
to elixir-lang-talk, jose....@plataformatec.com.br
Thanks José, that's doing the job perfect.

Op dinsdag 21 juni 2016 17:57:37 UTC+2 schreef José Valim:
Reply all
Reply to author
Forward
0 new messages