aboutsummaryrefslogtreecommitdiffstats
path: root/lib/mnesia/doc
diff options
context:
space:
mode:
authorDan Gudmundsson <[email protected]>2011-05-12 18:24:39 +0200
committerDan Gudmundsson <[email protected]>2011-11-28 15:04:38 +0100
commit14335e788f03ffdbd0540c20623eed9f1fc58de5 (patch)
tree3434ea9ea8f9e4097d5074592e3adb5b4599d1e2 /lib/mnesia/doc
parent2b36dd726551cf822041b065df5d753ed0dba8b1 (diff)
downloadotp-14335e788f03ffdbd0540c20623eed9f1fc58de5.tar.gz
otp-14335e788f03ffdbd0540c20623eed9f1fc58de5.tar.bz2
otp-14335e788f03ffdbd0540c20623eed9f1fc58de5.zip
[mnesia] Add possibility for implementation dependent storage options to create_table
Diffstat (limited to 'lib/mnesia/doc')
-rw-r--r--lib/mnesia/doc/src/mnesia.xml15
1 files changed, 15 insertions, 0 deletions
diff --git a/lib/mnesia/doc/src/mnesia.xml b/lib/mnesia/doc/src/mnesia.xml
index 19ec70118f..20133cb6cb 100644
--- a/lib/mnesia/doc/src/mnesia.xml
+++ b/lib/mnesia/doc/src/mnesia.xml
@@ -813,6 +813,21 @@ mnesia:change_table_copy_type(person, node(), disc_copies)
</p>
</item>
<item>
+ <p><c>{storage_properties, [{Backend, Properties}]</c>.
+ Forwards additional properties to the backend storage.
+ <c>Backend</c> can currently be <c>ets</c> or <c>dets</c> and
+ <c>Properties</c> is a list of options sent to the backend storage
+ during table creation. <c>Properties</c> may not contain properties
+ already used by mnesia such as <c>type</c> or <c>named_table</c>.
+ </p>
+ <p>For example:</p>
+ <code type="none">
+mnesia:create_table(table, [{ram_copies, [node()]}, {disc_only_copies, nodes()},
+ {storage_properties,
+ [{ets, [compressed]}, {dets, [{auto_save, 5000}]} ]}])
+ </code>
+ </item>
+ <item>
<p><c>{type, Type}</c>, where <c>Type</c> must be
either of the atoms <c>set</c>, <c>ordered_set</c> or
<c>bag</c>. The default value is <c>set</c>. In a