amnesia v0.2.8 Amnesia.Fragment

Link to this section Summary

Functions

Activate fragmentation on the given table, see mnesia:change_table_frag.

Activate fragmentation on the given tables on the given nodes, see mnesia:change_table_frag.

Add a fragment to the table on the given nodes, see mnesia:change_table_frag.

Add a given node to the fragments of the given table, see mnesia:change_table_frag.

Run the passed function or block in a dirty asynchronous context, see mnesia:async_dirty.

Run the passed function in a dirty asynchronous context passing over the passed arguments, see mnesia:async_dirty.

Deactivate fragmentation on the table, see mnesia:change_table_frag.

Delete all fragments from the given table, see mnesia:change_table_frag.

Delete a given node to the fragments of the given table, see mnesia:change_table_frag.

Run the passed function or block in the ETS context, see mnesia:ets.

Run the passed function in the ETS context passing over the passed arguments, see mnesia:ets.

Get the fragment properties of the given table.

Run the passed function or block in a dirty synchronous context, see mnesia:sync_dirty.

Run the passed function in a dirty synchronous context passing over the passed arguments, see mnesia:sync_dirty.

Start a transaction with the given block or function, see mnesia:transaction.

Start a transaction with the given function passing the passed arguments to it, see mnesia:transaction.

Start a transaction with the given function passing the passed arguments to it, trying to take a lock maximum retries times, see mnesia:transaction.

Start a synchronous transaction with the given block or function, see mnesia:sync_transaction.

Start a synchronous transaction with the given function passing the passed arguments to it, see mnesia:sync_transaction.

Start a synchronous transaction with the given function passing the passed arguments to it, trying to take a lock maximum retries times, see mnesia:sync_transaction.

Link to this section Functions

Link to this function

activate(name)

activate(atom()) :: Amnesia.Table.o()

Activate fragmentation on the given table, see mnesia:change_table_frag.

Link to this function

activate(name, nodes)

activate(atom(), [node()]) :: Amnesia.Table.o()

Activate fragmentation on the given tables on the given nodes, see mnesia:change_table_frag.

Link to this function

add(name, nodes)

add(atom(), [node()]) :: Amnesia.Table.o()

Add a fragment to the table on the given nodes, see mnesia:change_table_frag.

Link to this function

add_node(name, node)

add_node(atom(), node()) :: Amnesia.Table.o()

Add a given node to the fragments of the given table, see mnesia:change_table_frag.

Link to this macro

async(term)

(macro)
async([] | function()) :: any() | no_return()

Run the passed function or block in a dirty asynchronous context, see mnesia:async_dirty.

Link to this function

async(fun, args)

async(function(), list()) :: any() | no_return()

Run the passed function in a dirty asynchronous context passing over the passed arguments, see mnesia:async_dirty.

Link to this function

deactivate(name)

deactivate(atom()) :: Amnesia.Table.o()

Deactivate fragmentation on the table, see mnesia:change_table_frag.

Link to this function

delete(name)

delete(atom()) :: Amnesia.Table.o()

Delete all fragments from the given table, see mnesia:change_table_frag.

Link to this function

delete_node(name, node)

delete_node(atom(), node()) :: Amnesia.Table.o()

Delete a given node to the fragments of the given table, see mnesia:change_table_frag.

Link to this macro

ets(term)

(macro)
ets([] | function()) :: any() | no_return()

Run the passed function or block in the ETS context, see mnesia:ets.

Link to this function

ets(fun, args)

ets(function(), list()) :: any() | no_return()

Run the passed function in the ETS context passing over the passed arguments, see mnesia:ets.

Link to this function

properties(name)

properties(atom()) :: Keyword.t()

Get the fragment properties of the given table.

Link to this macro

sync(term)

(macro)
sync([] | function()) :: any() | no_return()

Run the passed function or block in a dirty synchronous context, see mnesia:sync_dirty.

Link to this function

sync(fun, args)

sync(function(), list()) :: any()

Run the passed function in a dirty synchronous context passing over the passed arguments, see mnesia:sync_dirty.

Link to this macro

transaction(term)

(macro)
transaction([{:do, term()}] | term()) :: any() | no_return()

Start a transaction with the given block or function, see mnesia:transaction.

Link to this function

transaction(fun, args)

transaction(function(), list()) :: any() | no_return()

Start a transaction with the given function passing the passed arguments to it, see mnesia:transaction.

Link to this function

transaction(fun, args, retries)

transaction(function(), list(), integer()) :: any() | no_return()

Start a transaction with the given function passing the passed arguments to it, trying to take a lock maximum retries times, see mnesia:transaction.

Link to this macro

transaction!(term)

(macro)
transaction!([] | function()) :: any() | no_return()

Start a synchronous transaction with the given block or function, see mnesia:sync_transaction.

Link to this function

transaction!(fun, args)

transaction!(function(), list()) :: any() | no_return()

Start a synchronous transaction with the given function passing the passed arguments to it, see mnesia:sync_transaction.

Link to this function

transaction!(fun, args, retries)

transaction!(function(), list(), integer()) :: any() | no_return()

Start a synchronous transaction with the given function passing the passed arguments to it, trying to take a lock maximum retries times, see mnesia:sync_transaction.