-
-
{access,
- access()}. It is possible to open
+
{access,
+ access()}. It is possible to open
existing tables in read-only mode. A table which is opened
in read-only mode is not subjected to the automatic file
reparation algorithm if it is later opened after a crash.
The default value is read_write.
-
-
{auto_save,
- auto_save()}, the auto save
+
{auto_save,
+ auto_save()}, the auto save
interval. If the interval is an integer Time, the
table is flushed to disk whenever it is not accessed for
Time milliseconds. A table that has been flushed
@@ -749,18 +749,18 @@ ok
is 180000 (3 minutes).
-
-
{estimated_no_objects,
- no_slots()}. Equivalent to the
+
{estimated_no_objects,
+ no_slots()}. Equivalent to the
min_no_slots option.
-
-
{file,
- file:name()}, the name of the file to be
+
{file,
+ file:name()}, the name of the file to be
opened. The default value is the name of the table.
-
-
{max_no_slots,
- no_slots()}, the maximum number
+
{max_no_slots,
+ no_slots()}, the maximum number
of slots that will be used. The default value as well as
the maximal value is 32 M. Note that a higher value may
increase the fragmentation of the table, and conversely,
@@ -769,16 +769,16 @@ ok
9 tables.
-
-
{min_no_slots,
- no_slots()}. Application
+
{min_no_slots,
+ no_slots()}. Application
performance can be enhanced with this flag by specifying,
when the table is created, the estimated number of
different keys that will be stored in the table. The
default value as well as the minimum value is 256.
-
-
{keypos,
- keypos()}, the position of the
+
{keypos,
+ keypos()}, the position of the
element of each object to be used as key. The default
value is 1. The ability to explicitly state the key
position is most convenient when we want to store Erlang
@@ -815,12 +815,12 @@ ok
already open.
-
-
{type, type()},
+
{type, type()},
the type of the table. The default value is set.
-
-
{version,
- version()}, the version of the format
+
{version,
+ version()}, the version of the format
used for the table. The default value is 9. Tables
on the format used before OTP R8 can be created by giving
the value 8. A version 8 table can be converted to
@@ -1036,8 +1036,8 @@ ok
specification that matches all objects.
-
-
{select,
- match_spec()}. As for select
+
{select,
+ match_spec()}. As for select
the table is traversed by calling dets:select/3
and dets:select/1. The difference is that the
match specification is explicitly given. This is how to
--
cgit v1.2.3