AbstractSqlExecutor
in package
AbstractYes
Base class for SQL statement executors.
Tags
Table of Contents
Properties
- $_sqlStatements : array<int, string>|string
- $queryCacheProfile : QueryCacheProfile
Methods
- execute() : Result|int
- 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
execute()
Executes all sql statements.
public
abstract execute(Connection $conn, array<string|int, mixed> $params, array<string|int, mixed> $types) : Result|int
Parameters
- $conn : Connection
-
The database connection that is used to execute the queries.
- $params : array<string|int, mixed>
- $types : array<string|int, mixed>
Tags
Return values
Result|intgetSqlStatements()
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