[erlang-questions] Records: How can I dump the structure of a record?

Vik Olliver <>
Mon Aug 11 06:34:05 CEST 2008


I have a nested record structure which is populated and then put into an
mnesia database.

I'd like to be able to recursively extract the structure of the record
so that I can use it to repopulate another database later (from a
backup, manual coding, new install or whatever).

Is there a nice way to do this that leaves me with something looking
very much like the original structure definitions in ASCII?

Vik :v)




More information about the erlang-questions mailing list