TokyoTyrantTable::setIndex
TokyoTyrantQuery::addCond
tokyo_tyrant
PHP Manual
The TokyoTyrantQuery class
Introduction
This class is used to query the table databases
Class synopsis
TokyoTyrantQuery
implements
Iterator
,
Traversable
{
/* Methods */
public
mixed
addCond
(
string
$name
,
int
$op
,
string
$expr
)
__construct
(
TokyoTyrantTable
$table
)
public
int
count
(
void
)
public
array
current
(
void
)
public
string
hint
(
void
)
public
string
key
(
void
)
public
array
metaSearch
(
array
$queries
,
int
$type
)
public
array
next
(
void
)
public
TokyoTyrantQuery
out
(
void
)
public
bool
rewind
(
void
)
public
array
search
(
void
)
public
mixed
setLimit
([
int
$max
[,
int
$skip
]] )
public
mixed
setOrder
(
string
$name
,
int
$type
)
public
bool
valid
(
void
)
}
Table of Contents
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
TokyoTyrantTable::setIndex
TokyoTyrantQuery::addCond
tokyo_tyrant
PHP Manual