Skip to content

Instantly share code, notes, and snippets.

@hiyosi
Created September 26, 2011 15:42
Show Gist options
  • Save hiyosi/1242533 to your computer and use it in GitHub Desktop.
Save hiyosi/1242533 to your computer and use it in GitHub Desktop.
Mnesiaレコード更新
%% http_listテーブルにレコードを追加/更新する
add_record_http_list(Id, System, Uri, Port) ->
Row = #http_list{id=Id, system=System, uri=Uri, port=Port},
F = fun() ->
mnesia:write(Row)
end,
mnesia:transaction(F).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment