public static function newInstance($options) { if (Arrays::getValue($options, Options::EMULATE_PREPARES)) { return new EmulatedPDOPreparedStatementExecutor(); } return new PDOPreparedStatementExecutor(); }
public static function prepare($dbHandle, $sql, $boundValues, $options) { $pdoExecutor = PDOExecutor::newInstance($options); return new StatementExecutor($dbHandle, $sql, $boundValues, $pdoExecutor); }