Is it possible in MNESIA

Ulf Wiger <>
Thu Oct 31 10:19:59 CET 2002


On Thu, 31 Oct 2002, Suresh S wrote:

>
>sir,
>
>here is there is any functionality in mnesia such that
>
>when ever a record is updated we can execute any call back
>function,
>
>like trigger function

The User Contribution RDBMS
(http://www.erlang.org/user.html#rdbms-1.3) implements
triggers that operate within the context of a mnesia
transaction. That is, they are truly atomic, and also work
for nested transactions. Mnesia table events are
asynchronous, and allow a "trigger" to respond to a table
update _after_ the transaction has been committed.

/Uffe
-- 
Ulf Wiger, Senior Specialist,
   / / /   Architecture & Design of Carrier-Class Software
  / / /    Strategic Product & System Management
 / / /     Ericsson Telecom AB, ATM Multiservice Networks





More information about the erlang-questions mailing list