TokyoTyrantQuery::rewind

(PECL tokyo_tyrant >= 0.1.0) Rewinds the iterator public bool TokyoTyrantQuery::rewind ( void ) Rewind the resultset and executes the query if it has not been executed. Part of the Iterator interface. Returns: Returns TRUE Examples: TokyoTyrantQuery iterator example <?php /* Connect to a table database */ $tt = new 

TokyoTyrantQuery::out

(PECL tokyo_tyrant >= 0.1.0) Removes records based on query public TokyoTyrantQuery TokyoTyrantQuery::out ( void ) Removes all records that match the query. Works exactly like search but removes the records instead of returning them. Returns: This method returns the current object and throws TokyoTyrantException on failure. Examples:

TokyoTyrantQuery::next

(PECL tokyo_tyrant >= 0.1.0) Moves the iterator to next entry public array TokyoTyrantQuery::next ( void ) Returns the next result in the resultset. Part of the Iterator interface. Returns: Returns the next row and throws TokyoTyrantException on error. Examples: TokyoTyrantQuery iterator example <?php /* Connect to 

TokyoTyrantQuery::metaSearch

(No version information available, might only be in Git) Retrieve records with multiple queries public array TokyoTyrantQuery::metaSearch ( array $queries, int $type ) Executes multiple queries on a database and returns matching records. The current object is always the left most object in the search. Parameters: queries Array of TokyoTyrantQuery objects

TokyoTyrantQuery::key

(PECL tokyo_tyrant >= 0.1.0) Returns the current key public string TokyoTyrantQuery::key ( void ) Returns the current key. Part of the Iterator interface Returns: Returns the current key and throws TokyoTyrantException on error Examples: TokyoTyrantQuery iterator example <?php /* Connect to a table database */ $tt =

TokyoTyrantQuery::hint

(No version information available, might only be in Git) Get the hint string of the query public string TokyoTyrantQuery::hint ( void ) Get the hint string of the query. The hint string contains information about an executed query and it could be compared to for example MySQL EXPLAIN statement. Returns: This method always returns a string Examples:

TokyoTyrantQuery::current

(PECL tokyo_tyrant >= 0.1.0) Returns the current element public array TokyoTyrantQuery::current ( void ) Returns the current element. Part of Iterator interface Returns: Returns the current row Examples: TokyoTyrantQuery iterator example <?php /* Connect to a table database */ $tt = new TokyoTyrantTable("localhost",

TokyoTyrantQuery::count

(No version information available, might only be in Git) Counts records public int TokyoTyrantQuery::count ( void ) Returns a count of how many records a query returns. Returns: Returns a count of matching rows and throws TokyoTyrantException on error Examples: TokyoTyrantQuery::count() example <?php /* Connect to a ta

TokyoTyrantQuery::__construct

(PECL tokyo_tyrant >= 0.1.0) Construct a new query public TokyoTyrantQuery::__construct ( TokyoTyrantTable $table ) Construct a new query object Parameters: table TokyoTyrantTable object with active database connection Returns: Returns a new TokyoTyrantQuery object and throws TokyoTyrantException on error

TokyoTyrantQuery::addCond

(PECL tokyo_tyrant >= 0.1.0) Adds a condition to the query public mixed TokyoTyrantQuery::addCond ( string $name, int $op, string $expr ) Adds a condition to the query. Condition can be something like: get all keys which value matches expr. Parameters: name Name of the column in the condition op The operator. One of the TokyoTyrant::