TokyoTyrantQuery::hint
(No version information available, might only be in Git)
TokyoTyrantQuery::hint — Get the hint string of the query
Description
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.
Parameters
This function has no parameters.
Return Values
This method always returns a string
Examples
Example #1 TokyoTyrantQuery::hint example
<?php
$tt = new TokyoTyrantTable("localhost", 1979);
$tt->vanish();
for ($i = 0; $i < 11; $i++) {
$tt->put(null, array('a_col' => 'a' . $i, 'b_col' => 'b' . $i));
}
$query = $tt->getQuery();
$query->addCond('a_col', TokyoTyrant::RDBQC_STRBW, 'a');
$query->search();
var_dump($query->hint());
?>
The above example will output something similar to:
string(72) " scanning the whole table result set size: 11 leaving the natural order "
- PHP Руководство
- Функции по категориям
- Индекс функций
- Справочник функций
- Расширения для работы с базами данных
- Расширения для работы с базами данных отдельных производителей
- tokyo_tyrant
- Функция TokyoTyrantQuery::addCond() - Adds a condition to the query
- Функция TokyoTyrantQuery::__construct() - Construct a new query
- Функция TokyoTyrantQuery::count() - Counts records
- Функция TokyoTyrantQuery::current() - Returns the current element
- Функция TokyoTyrantQuery::hint() - Get the hint string of the query
- Функция TokyoTyrantQuery::key() - Returns the current key
- Функция TokyoTyrantQuery::metaSearch() - Retrieve records with multiple queries
- Функция TokyoTyrantQuery::next() - Moves the iterator to next entry
- Функция TokyoTyrantQuery::out() - Removes records based on query
- Функция TokyoTyrantQuery::rewind() - Rewinds the iterator
- Функция TokyoTyrantQuery::search() - Searches records
- Функция TokyoTyrantQuery::setLimit() - Limit results
- Функция TokyoTyrantQuery::setOrder() - Orders results
- Функция TokyoTyrantQuery::valid() - Checks the validity of current item
Коментарии
404 Not Found