[Erlang Systems]

mnesia

MODULE

MODULE SUMMARY

DESCRIPTION

EXPORTS

abort(Reason) -> transaction abort

activate_checkpoint(Args) -> {ok,Name,Nodes} | {error,Reason}

activity(AccessContext, Fun [, Args]) -> ResultOfFun | exit(Reason)

activity(AccessContext, Fun, Args, AccessMod) -> ResultOfFun | exit(Reason)

add_table_copy(Tab, Node, Type) -> {aborted, R} | {atomic, ok}

add_table_index(Tab, AttrName) -> {aborted, R} | {atomic, ok}

all_keys(Tab) -> KeyList | transaction abort

async_dirty(Fun, [, Args]) -> ResultOfFun | exit(Reason)

backup(Opaque [, BackupMod]) -> ok | {error,Reason}

backup_checkpoint(Name, Opaque [, BackupMod]) -> ok | {error,Reason}

change_config(Config, Value) -> {error, Reason} | {ok, ReturnValue}

change_table_access_mode(Tab, AccessMode) -> {aborted, R} | {atomic, ok}

change_table_copy_type(Tab, Node, To) -> {aborted, R} | {atomic, ok}

change_table_load_order(Tab, LoadOrder) -> {aborted, R} | {atomic, ok}

create_schema(DiscNodes) -> ok | {error,Reason}

create_table(Name, TabDef) -> {atomic, ok} | {aborted, Reason}

deactivate_checkpoint(Name) -> ok | {error, Reason}

del_table_copy(Tab, Node) -> {aborted, R} | {atomic, ok}

del_table_index(Tab, AttrName) -> {aborted, R} | {atomic, ok}

delete({Tab, Key}) -> transaction abort | ok

delete(Tab, Key, LockKind) -> transaction abort | ok

delete_object(Record) -> transaction abort | ok

delete_object(Tab, Record, LockKind) -> transaction abort | ok

delete_schema(DiscNodes) -> ok | {error,Reason}

delete_table(Tab) -> {aborted, Reason} | {atomic, ok}

dirty_all_keys(Tab) -> KeyList | exit({aborted, Reason}).

dirty_delete({Tab, Key}) -> ok | exit({aborted, Reason})

dirty_delete(Tab, Key) -> ok | exit({aborted, Reason})

dirty_delete_object(Record)

dirty_delete_object(Tab, Record)

dirty_first(Tab) -> Key | exit({aborted, Reason})

dirty_index_match_object(Pattern, Pos)

dirty_index_match_object(Tab, Pattern, Pos)

dirty_index_read(Tab, SecondaryKey, Pos)

dirty_match_object(Pattern) -> RecordList | exit({aborted, Reason}).

dirty_match_object(Tab, Pattern) -> RecordList | exit({aborted, Reason}).

dirty_next(Tab, Key) -> Key | exit({aborted, Reason})

dirty_read({Tab, Key}) -> ValueList | exit({aborted, Reason}

dirty_read(Tab, Key) -> ValueList | exit({aborted, Reason}

dirty_slot(Tab, Slot) -> RecordList | exit({aborted, Reason})

dirty_update_counter({Tab, Key}, Incr) -> NewVal | exit({aborted, Reason})

dirty_update_counter(Tab, Key, Incr) -> NewVal | exit({aborted, Reason})

dirty_write(Record) -> ok | exit({aborted, Reason})

dirty_write(Tab, Record) -> ok | exit({aborted, Reason})

dump_log() -> dumped

dump_tables(TabList) -> {atomic, ok} | {aborted, Reason}

dump_to_textfile(Filename)

error_description(Error) -> String

ets(Fun, [, Args]) -> ResultOfFun | exit(Reason)

force_load_table(Tab) -> yes | ErrorDescription

index_match_object(Pattern, Pos) -> transaction abort | ObjList

index_match_object(Tab, Pattern, Pos, LockKind) -> transaction abort | ObjList

index_read(Tab, SecondaryKey, Pos) -> transaction abort | RecordList

info() -> ok

install_fallback(Opaque) -> ok | {error,Reason}

install_fallback(Opaque), BackupMod) -> ok | {error,Reason}

install_fallback(Opaque, Args) -> ok | {error,Reason}

load_textfile(Filename)

lock(LockItem, LockKind) -> GoodNodes | transaction abort

match_object(Pattern) ->transaction abort | RecList

match_object(Tab, Pattern, LockKind) ->transaction abort | RecList

move_table_copy(Tab, From, To) -> {aborted, Reason} | {atomic, ok}

read({Tab, Key}) -> transaction abort | RecordList

read(Tab, Key, LockKind) -> transaction abort | RecordList

read_lock_table(Tab) -> ok | transaction abort

report_event(Event) -> ok

restore(Opaque, Args) -> {atomic, RestoredTabs} |{aborted, Reason}

s_delete({Tab, Key}) -> ok | transaction abort

s_delete_object(Record) -> ok | transaction abort

s_write(Record) -> ok | transaction abort

schema() -> ok

schema(Tab) -> ok

set_debug_level(Level) -> OldLevel

set_master_nodes(MasterNodes) -> ok | {error, Reason}

set_master_nodes(Tab, MasterNodes) -> ok | {error, Reason}

snmp_close_table(Tab) -> {aborted, R} | {atomic, ok}

snmp_get_mnesia_key(Tab, RowIndex) -> {ok, Key} | undefined

snmp_get_next_index(Tab, RowIndex) -> {ok, NextIndex} | endOfTable

snmp_get_row(Tab, RowIndex) -> {ok, Row} | undefined

snmp_open_table(Tab, SnmpStruct) -> {aborted, R} | {atomic, ok}

start() -> ok | {error, Reason}

stop() -> stopped

subscribe(EventCategory)

sync_dirty(Fun, [, Args]) -> ResultOfFun | exit(Reason)

system_info(InfoKey) -> Info | exit({aborted, Reason})

table_info(Tab, InfoKey) -> Info | exit({aborted, Reason})

transaction(Fun [[, Args], Retries]) -> {aborted, Reason} | {atomic, ResultOfFun}

transform_table(Tab, Fun, NewAttributeList, NewRecordName) -> {aborted, R} | {atomic, ok}

transform_table(Tab, Fun, NewAttributeList) -> {aborted, R} | {atomic, ok}

traverse_backup(Source, [SourceMod,] Target, [TargetMod,] Fun, Acc) -> {ok, LastAcc} | {error, Reason}

uninstall_fallback() -> ok | {error,Reason}

uninstall_fallback(Args) -> ok | {error,Reason}

unsubscribe(EventCategory)

wait_for_tables(TabList,Timeout) -> ok | {timeout, BadTabList}

wread({Tab, Key}) -> transaction abort | RecordList

write(Record) -> transaction abort | ok

write(Tab, Record, LockKind) -> transaction abort | ok

write_lock_table(Tab) -> ok | transaction abort

Configuration parameters

See Also

AUTHORS


mnesia 3.9.2
Copyright © 1991-2000 Ericsson Utvecklings AB