TokyoTyrantQuery::valid

(PECL tokyo_tyrant >= 0.1.0) Checks the validity of current item public bool TokyoTyrantQuery::valid ( void ) Checks if the current item is valid. Part of the Iterator interface Returns: Returns TRUE if the current item is valid and FALSE if not. Examples: TokyoTyrantQuery iterator example <?php /* Connect to a tabl

TokyoTyrantQuery::setLimit

(PECL tokyo_tyrant >= 0.1.0) Limit results public mixed TokyoTyrantQuery::setLimit ([ int $max [, int $skip ]] ) Set the maximum amount of records to return on a query. Parameters: max Maximum amount of records. Default: -1 skip How many records to skip from the start. Default: -1 Returns: This method return

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::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::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::__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::

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::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