Module tcbdbtab

Mnesia table driver for tcbdbets.

Behaviours: mnesia_ext.

Description

Mnesia table driver for tcbdbets. Example:
  mnesia:create_table (testtab,
                       [ { type, { external, ordered_set, tcbdbtab } },
                         { external_copies, [ node () ] },
                         { attributes, [ key, count ] },
                         { user_properties, [ { deflate, true },
                                              { async_write, true },
                                              { bucket_array_size, 10000 },
                                              { bloom, 1 bsl 20, 7 } ] } ]),
  

Options to tcbdbets:open_file/1 are passed via user_properties. Since user_properties must contain tuples, the non-tuple options to tcbdbets:open_file/1 are indicated via { Arg, true } tuples, e.g., in the above example the { deflate, true } tuple activates the deflate option to tcbdbets:open_file/1. Unlike tcbdbets:open_file/1, the bloom option does not take a filename as this is computed from the table name.

Function Index

clear_stats/1
get_stats/1

Function Details

clear_stats/1

clear_stats(Tab) -> any()

get_stats/1

get_stats(Tab) -> any()


Generated by EDoc, Mar 2 2009, 02:06:45.