SingleSelectExecutor
extends AbstractSqlExecutor
in package
Executor that executes the SQL statement for simple DQL SELECT statements.
Tags
Table of Contents
Properties
- $_sqlStatements : array<int, string>|string
- $queryCacheProfile : QueryCacheProfile
Methods
- __construct() : mixed
- execute() : Result
- Executes all sql statements.
- getSqlStatements() : array<string|int, mixed>|string
- Gets the SQL statements that are executed by the executor.
- removeQueryCacheProfile() : void
- Do not use query cache
- setQueryCacheProfile() : void
Properties
$_sqlStatements
protected
array<int, string>|string
$_sqlStatements
$queryCacheProfile
protected
QueryCacheProfile
$queryCacheProfile
Methods
__construct()
public
__construct(SelectStatement $AST, SqlWalker $sqlWalker) : mixed
Parameters
- $AST : SelectStatement
- $sqlWalker : SqlWalker
execute()
Executes all sql statements.
public
execute(Connection $conn, array<string|int, mixed> $params, array<string|int, mixed> $types) : Result
Parameters
- $conn : Connection
-
The database connection that is used to execute the queries.
- $params : array<string|int, mixed>
- $types : array<string|int, mixed>
Return values
ResultgetSqlStatements()
Gets the SQL statements that are executed by the executor.
public
getSqlStatements() : array<string|int, mixed>|string
Return values
array<string|int, mixed>|string —All the SQL update statements.
removeQueryCacheProfile()
Do not use query cache
public
removeQueryCacheProfile() : void
setQueryCacheProfile()
public
setQueryCacheProfile(QueryCacheProfile $qcp) : void
Parameters
- $qcp : QueryCacheProfile