[erlang-questions] Storing Map into DB
Vans S
vans_163@REDACTED
Fri Mar 24 15:45:06 CET 2017
A mnesia table with the key being the uuid of the object.
{db_mytable, uuid4, #{}}
You have full fold/match/select available to you now.
[Valid] = :mnesia.match_object({:db_mytable, _, #{auth=>#{token=> "353442323232"}})
On Friday, March 24, 2017 10:13 AM, Steve Davis <steven.charles.davis@REDACTED> wrote:
Simplest (and most portable) would be:
for the put/write: term_to_binary(Map), for the get/read: binary_to_term(Blob)
_______________________________________________
erlang-questions mailing list
erlang-questions@REDACTED
http://erlang.org/mailman/listinfo/erlang-questions
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20170324/faeb3b38/attachment.htm>
More information about the erlang-questions
mailing list