Skip to content

Instantly share code, notes, and snippets.

@johnhamelink
Created February 11, 2016 18:41
Show Gist options
  • Select an option

  • Save johnhamelink/89cf27067e5b68fd7593 to your computer and use it in GitHub Desktop.

Select an option

Save johnhamelink/89cf27067e5b68fd7593 to your computer and use it in GitHub Desktop.
table_infos = for t <- :mnesia.system_info(:tables) do
{t, :mnesia.table_info(t, :where_to_commit)}
end
for {tb, [{node_to_connect, type}]} <- table_infos do
{tb, :mnesia.add_table_copy(tb, node(), type)}
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment