for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Ray\AuraSqlModule;
use Aura\SqlQuery\Common\InsertInterface;
use Aura\SqlQuery\QueryFactory;
use Override;
use Ray\AuraSqlModule\Annotation\AuraSqlQueryConfig;
use Ray\Di\ProviderInterface;
/** @implements ProviderInterface<InsertInterface> */
final readonly class AuraSqlQueryInsertProvider implements ProviderInterface
{
/**
* @param string $db The database type
*
* @AuraSqlQueryConfig
*/
#[AuraSqlQueryConfig]
public function __construct(private string $db)
}
* {@inheritDoc}
#[Override]
public function get(): InsertInterface
return new QueryFactory($this->db)->newInsert();