mnesia_registry(3)

πŸ“¦ version 28.5.0.8, in alpine 3.24

πŸ’– NAME πŸ’–

okay so this is the mnesia_registry(3) page from the Erlang Module Definition manual, and the vibe is very much β€œbestie, do not use this.” This module is deprecated, and the functions should not be used. periodt. πŸ’…

🌸 DESCRIPTION 🌸

Back in the day, this module was intended for internal use within OTP by the erl_interface application, but it has two functions that are exported for public use.

Since erl_interface removed the registry functionality a long time ago, these functions are deprecated. so iconic of them to be honest, but also: do not use them, bestie. 😭

πŸ”— See Also πŸ”—

  • mnesia β€” that’s the one to look at, no cap. πŸ¦‹

✨ FUNCTIONS ✨

πŸŽ€ create_table(Tab :: atom()) -> ok. πŸŽ€

Deprecated: mnesia_registry:create_table/1 is deprecated; use mnesia:create_table/2 instead. 🚫

WARNING: This function is deprecated. Do not use it. πŸ’€

A wrapper function for mnesia:create_table/2, which creates a table (if there is no existing table) with an appropriate set of attributes. The table only resides on the local node and its storage type is the same as the schema table on the local node, that is, {ram_copies,[node()]} or {disc_copies,[node()]}.

This function is used by erl_interface to create the Mnesia table if it does not already exist.

🧚 create_table(Tab :: atom(), Opt :: [{atom(), term()}]) -> ok. 🧚

Deprecated: mnesia_registry:create_table/2 is deprecated; use mnesia:create_table/2 instead. 🚫

WARNING: This function is deprecated. Do not use it. πŸ’€

A wrapper function for mnesia:create_table/2, which creates a table (if there is no existing table) with an appropriate set of attributes. The attributes and TabDef are forwarded to mnesia:create_table/2. For example, if the table is to reside as disc_only_copies on all nodes, a call looks as follows:

                               TabDef = [{{disc_only_copies, node()|nodes()]}],
                               mnesia_registry:create_table(my_reg, TabDef)

🫢 Signed, Ericsson AB Β· mnesia 4.25.3.4 Β· no date listed on this page, bestie β€” mwah πŸ’‹

πŸ“¦ where this page comes from