class Db \ Query

All implemented interfaces:
Serializable
All known direct subclasses:
ReplicatedQuery

Represents an instance of a query, which can be executed and results fetched.


Method Summary

Name Description
__construct(Connection $connection, $query)
execute($args = array())
fetch()
fetchAll()
getConnection()
rowCount()
serialize() We implement Serializable so that this can be used in a serialized exception argument.
unserialize($ser)

public function __construct(Connection $connection, $query)


public function execute($args = array())

Defaults:
args = array()
Returns:
true on success
Throws:
DbException - on error with PDOStatement#errorInfo.

public function fetch()


public function fetchAll()


public function getConnection()


public function rowCount()


public function serialize()

We implement Serializable so that this can be used in a serialized exception argument.


public function unserialize($ser)

Throws:
Exception - since unserialize() is not supported on this object