chickadee » tokyocabinet » tc-bdb-open

tc-bdb-open FILE #!key FLAGS MUTEX? LEAF-MEMBERS NON-LEAF-MEMBERS NUM-BUCKETS RECORD-ALIGNMENT NUM-FREE-BLOCKS TUNE-OPTS LEAF-CACHE NON-LEAF-CACHE MMAP-SIZEprocedure

Returns a BDB object as a c-pointer. FLAGS specifies creation and locking behavior; by default files are opened for reading (TC_BDBOREADER), writing (TC_BDBOWRITER) and creating (TC_BDBOCREAT).

TUNE-OPTS, along with the other keywords specify options to the tcbdbtune function. MUTEX? opens the file under mutex mode (as with tcbdbsetmutex).