Created
April 19, 2012 11:55
-
-
Save jespada/2420461 to your computer and use it in GitHub Desktop.
mnesia copy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%Copy al the tables at once | |
Node = mynodename, % node to copy these tables | |
StorageType = fun(T) -> mnesia:table_info(T, storage_type) end, | |
Tabs = mnesia:system_info(local_tables) -- [schema], | |
[mnesia:add_table_copy(Tab, Node, StorageType(Tab)) || Tab <- Tabs]. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment