for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Yiisoft\ActiveRecord\Tests\Support;
use Yiisoft\Db\Connection\ConnectionInterface;
use Yiisoft\Db\Sqlite\Connection;
use Yiisoft\Db\Sqlite\Driver;
final class SqliteHelper extends ConnectionHelper
{
private string $charset = 'UTF8';
public function createConnection(): ConnectionInterface
$pdoDriver = new Driver('sqlite::memory:');
$pdoDriver->charset($this->charset);
return new Connection($pdoDriver, $this->createSchemaCache());
}