for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Yiisoft\Db\Tests\Provider;
use PDO;
final class BaseCommandPDOProvider
{
public function bindParam(): array
return [
[
'id',
':id',
1,
PDO::PARAM_STR,
null,
'id' => '1',
'email' => '[email protected]',
'name' => 'user1',
'address' => 'address1',
'status' => '1',
'profile_id' => '1',
],
];
}
public function bindParamsNonWhere(): array
<<<SQL
SELECT SUBSTR(name, :len) FROM [[customer]] WHERE [[email]] = :email GROUP BY SUBSTR(name, :len)
SQL,
SELECT SUBSTR(name, :len) FROM [[customer]] WHERE [[email]] = :email ORDER BY SUBSTR(name, :len)
SELECT SUBSTR(name, :len) FROM [[customer]] WHERE [[email]] = :email