abstract class AbstractSqlExecutor (View source)

Base class for SQL statement executors.

Properties

protected string[] $sqlStatements
protected QueryCacheProfile $queryCacheProfile

Methods

string[]
getSqlStatements()

Gets the SQL statements that are executed by the executor.

setQueryCacheProfile(QueryCacheProfile $qcp)

No description

removeQueryCacheProfile()

Do not use query cache

Statement
execute(Connection $conn, array $params, array $types)

Executes all sql statements.

Details

string[] getSqlStatements()

Gets the SQL statements that are executed by the executor.

Return Value

string[] All the SQL update statements.

setQueryCacheProfile(QueryCacheProfile $qcp)

Parameters

QueryCacheProfile $qcp

removeQueryCacheProfile()

Do not use query cache

abstract Statement execute(Connection $conn, array $params, array $types)

Executes all sql statements.

Parameters

Connection $conn The database connection that is used to execute the queries.
array $params The parameters.
array $types The parameter types.

Return Value

Statement