TokyoTyrantTable::setIndex

(PECL tokyo_tyrant >= 0.1.0) Sets index public mixed TokyoTyrantTable::setIndex ( string $column, int $type ) Sets an index on a specified column. The index type is one of the TokyoTyrant::RDBIT_* constants. Passing TokyoTyrant::RDBIT_VOID removes the index. Parameters: column The name of the column type The index type

TokyoTyrantTable::putShl

(PECL tokyo_tyrant >= 0.1.0) Concatenates to a record public void TokyoTyrantTable::putShl ( string $key, string $value, int $width ) This method is not supported on table databases. Calling this method through TokyoTyrantTable is considered an error and an TokyoTyrantException will be thrown. Parameters: key A string key value The

TokyoTyrantTable::putNr

(PECL tokyo_tyrant >= 0.1.0) Puts value public void TokyoTyrantTable::putNr ( mixed $keys [, string $value ] ) This method is not supported on table databases. Calling this method through TokyoTyrantTable is considered an error and an TokyoTyrantException will be thrown. Parameters: keys A string key or an array of key-value pairs value

TokyoTyrantTable::putKeep

(PECL tokyo_tyrant >= 0.1.0) Put a new record public void TokyoTyrantTable::putKeep ( string $key, array $columns ) Puts a new record into the database. If the key already exists this method throws an exception indicating that the records exists. Parameters: key The primary key of the row or NULL columns Array of the row contents

TokyoTyrantTable::putCat

(PECL tokyo_tyrant >= 0.1.0) Concatenates to a row public void TokyoTyrantTable::putCat ( string $key, array $columns ) This method can be used to add new columns to existing records. Existing keys will be left unmodified but any new columns will be appended to the row. Passing null as key will generate a new row. Parameters: key The primary key of the row or NULL

TokyoTyrantTable::put

(PECL tokyo_tyrant >= 0.1.0) Store a row public int TokyoTyrantTable::put ( string $key, array $columns ) Puts a new row into the database. This method parameters are key which is the primary key of the row, passing NULL will generate a new unique id. value is an array containing the row contents which is usually key value pairs. Parameters: key The primary key of the

TokyoTyrantTable::out

(PECL tokyo_tyrant >= 0.1.0) Remove records public void TokyoTyrantTable::out ( mixed $keys ) Removes records from a table database. Parameters: keys A single integer key or an array of integers Returns: This method returns the current object and throws TokyoTyrantException on failure. Example

TokyoTyrantTable::getQuery

(PECL tokyo_tyrant >= 0.1.0) Get a query object public TokyoTyrantQuery TokyoTyrantTable::getQuery ( void ) Get a query object to execute searches on the database Returns: Returns TokyoTyrantQuery on success and throws TokyoTyrantException on error Examples: TokyoTyrantTable::getQuery() example <?php /* Connect to a

TokyoTyrantTable::getIterator

(No version information available, might only be in Git) Get an iterator public TokyoTyrantIterator TokyoTyrantTable::getIterator ( void ) Gets an iterator for iterating all keys / values in the database. Returns: This method returns TokyoTyrantIterator object and throws TokyoTyrantException on failure. Examples: TokyoTyrantTable::getI

TokyoTyrantTable::get

(PECL tokyo_tyrant >= 0.1.0) Get a row public array TokyoTyrantTable::get ( mixed $keys ) Gets a row from table database. keys is a single integer for the primary key of the row or an array of integers for multiple rows. Parameters: keys The primary key, can be a string or an integer Returns: Returns the row as an array