mysqli::autocommit

(PHP 5, PHP 7) Turns on or off auto-committing database modifications bool mysqli::autocommit ( bool $mode ) Object oriented style Procedural style bool mysqli_autocommit ( mysqli $link , bool $mode ) Turns on or off auto-commit mode on queries for the database connection. To determine the current state of autocommit use the SQL command SELECT @@autocommit. Parameters: link

mysqli::$affected_rows

(PHP 5, PHP 7) Gets the number of affected rows in a previous MySQL operation int mysqli_affected_rows ( mysqli $link ) Object oriented style int $mysqli->affected_rows; Procedural style Returns the number of rows affected by the last INSERT, UPDATE, REPLACE or DELETE query. For SELECT statements mysqli_affected_rows() works like mysqli_num_rows(). Parameters: link P

TokyoTyrantIterator::valid

(PECL tokyo_tyrant >= 0.2.0) Rewinds the iterator public bool TokyoTyrantIterator::valid ( void ) Checks whether the internal pointer points to valid element. Returns: Returns TRUE if the current item is valid and FALSE if not. See also: TokyoTyrantIterator::key() - TokyoTyrantItera

TokyoTyrantIterator::current

(PECL tokyo_tyrant >= 0.2.0) Get the current value public mixed TokyoTyrantIterator::current ( void ) Returns the current value during iteration. Returns: Returns the current value on success and false on failure. See also: TokyoTyrantIterator::valid() - TokyoTyrantIterator::key() -

TokyoTyrantIterator::__construct

(PECL tokyo_tyrant >= 0.2.0) Construct an iterator public TokyoTyrantIterator::__construct ( mixed $object ) Construct a new TokyoTyrantIterator object. One connection can have multiple iterators but it is not quaranteed that all items are traversed in that case. object parameter can be either an of instance TokyoTyrant or TokyoTyrantTable. Returns: Throws an exception if iterator initializatio

TokyoTyrantIterator::key

(PECL tokyo_tyrant >= 0.2.0) Returns the current key public mixed TokyoTyrantIterator::key ( void ) Returns the current key. Returns: Returns the current key on success and false on failure. See also: TokyoTyrantIterator::valid() - TokyoTyrantIterator::current() -

TokyoTyrantQuery::setOrder

(PECL tokyo_tyrant >= 0.1.0) Orders results public mixed TokyoTyrantQuery::setOrder ( string $name, int $type ) Sets the order of a query Parameters: name The column name to apply the ordering on. type The type can be one of the following constants: TokyoTyrant::RDBQO_STRASC - String ascending TokyoTyrant::RDBQO_STRDESC - Stri

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

(PECL tokyo_tyrant >= 0.1.0) Searches records public array TokyoTyrantQuery::search ( void ) Executes a search on the table database. Returns an array of arrays containing the matching records. In the returned array the first level is the primary key of the data and the second level is the row data. Returns: Returns the matching rows and throws TokyoTyrantException on error