# Io Reference

Databases / TokyoCabinet / TokyoCabinet

|  | An ordered key/value database that supports transactions and arbitrary key and value sizes.
|  | abort Abort transaction. Returns self at(keySymbol) Returns a Sequence for the value at the given key or nil if there is no such key. atApple(keySymbol, valueSequence) Appends valueSequence to the current value at keySymbol. Returns self. atPut(keySymbol, valueSequence) Sets the value of valueSequence with the key keySymbol. Returns self. atRemove(keySymbol) Removes the specified key. Returns self begin Begin transaction. Returns self close Closes the database. commit Commit transaction. Returns self compareType Returns the compare type function name used. cursor Returns a new cursor object. open(path) Opens the database. optimize Optimizes the database. Returns self path Returns the path of the database file. prefixCursor Returns a new prefix cursor object. setCompareType(name) Sets the compare type function used to compare keys in the database. Valid compare types include: "lexical", "decimal", "int32", "int64" and "path". Returns self. setPath(aPath) Sets the path of the database file. Returns self. size Returns number of records in the database. Returns self sizeAt(keySymbol) Returns the size of the value at the given key or nil if there is no such key. sync Syncs the database. Returns self transactionalAtPut(key, value) Transactionally insert the given key and value. Returns self. transactionalRemoveAt(key) Transactionally remove the given key. Returns self.