Class implementing Query adapter for working with SimpleDb queries in a structured way
Aggregates operations in an array of clauses, where the first element describes the clause type, and the next element describes the criteria.
category | Zend |
---|---|
package | Zend_Cloud |
subpackage | DocumentService |
copyright | Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com) |
license | New BSD License |
inherited_from | \Zend_Cloud_DocumentService_Query |
__call(string $name, mixed $args) : \Zend_Cloud_DocumentService_Query
You can use any clause by doing $query->foo('bar') but concrete adapters should be able to recognise it
The call will be iterpreted as clause 'foo' with argument 'bar'
string
Clause/method name
mixed
\Zend_Cloud_DocumentService_Query
__construct(\Zend_Cloud_DocumentService_Adapter_SimpleDb $adapter, null|string $collectionName = null
) : void
\Zend_Cloud_DocumentService_Adapter_SimpleDb
null
string
assemble($collectionName = null
) : string
Simply returns the clauses present.
var | Name of collection from which to select |
---|---|
inherited_from | \Zend_Cloud_DocumentService_Query::assemble() |
string
assemble() : array
Simply returns the clauses present.
inherited_from | \Zend_Cloud_DocumentService_QueryAdapter::assemble() |
---|
array
from(string $name) : \Zend_Cloud_DocumentService_Query
inherited_from | \Zend_Cloud_DocumentService_QueryAdapter::from() |
---|
string
Field names
\Zend_Cloud_DocumentService_Query
getAdapter() : \Zend_Cloud_DocumentService_Adapter_SimpleDb
\Zend_Cloud_DocumentService_Adapter_SimpleDb
getClauses() : array
array
Clauses in the querylimit(integer $limit) : \Zend_Cloud_DocumentService_Query
inherited_from | \Zend_Cloud_DocumentService_QueryAdapter::limit() |
---|
integer
\Zend_Cloud_DocumentService_Query
order(string|integer|array $sort, string $direction = 'asc'
) : \Zend_Cloud_DocumentService_Query
inherited_from | \Zend_Cloud_DocumentService_QueryAdapter::order() |
---|
string
integer
array
string
\Zend_Cloud_DocumentService_Query
select(null|string|array $select) : \Zend_Cloud_DocumentService_Query
inherited_from | \Zend_Cloud_DocumentService_QueryAdapter::select() |
---|
null
string
array
\Zend_Cloud_DocumentService_Query
where(string $cond, mixed $value= null
, string $op= 'and'
) : \Zend_Cloud_DocumentService_Query
inherited_from | \Zend_Cloud_DocumentService_QueryAdapter::where() |
---|
string
Condition
string
relation to other clauses - and/or
\Zend_Cloud_DocumentService_Query
whereId(string|integer $value) : \Zend_Cloud_DocumentService_Query
This one should be used when fetching specific rows since some adapters have special syntax for primary keys
inherited_from | \Zend_Cloud_DocumentService_QueryAdapter::whereId() |
---|
string
integer
Identifier to select by
\Zend_Cloud_DocumentService_Query
_parseWhere(string $where, array $args) : string
todo | Ensure this fulfills the entire SimpleDB query specification for WHERE |
---|
string
array
string
$_adapter : \Zend_Cloud_DocumentService_Adapter_SimpleDb
$_clauses : array
array()
QUERY_FROM = 'from'
QUERY_LIMIT = 'limit'
QUERY_ORDER = 'order'
QUERY_SELECT = 'select'
QUERY_WHERE = 'where'
QUERY_WHEREID = 'whereid'