Edit
↰
Home
↑
pq-gateway
↑
Query
↑
Executor
↻
Executor::execute
↲
Executor::__construct
↲
Executor::attach
↲
Executor::detach
↲
Executor::getConnection
↲
Executor::getQuery
↲
Executor::getResult
↲
Executor::notify
↲
Executor::setConnection
#
mixed
pq\Query\Executor
pq\Query\Executor::execute
(
\pq\Query\Writer
$query
,
callable
$callback
);
Execute the query and process the result with the
callback
.
Params:
#
pq\Query\Writer
$query
#
The query to execute.
callable
$callback
#
The result processing
callback
as function(
pq\Result
$result
#
)
Returns:
#
mixed
, the return value of the
callback
.
Show Comments from Github Discussions