Skip to content

How can run custom query in repository? #359

Answered by roxblnfk
mayken asked this question in Q&A
Discussion options

You must be logged in to vote
/** @var DriverInterface $driver */
$result = $driver->query(
    'SELECT EXISTS (SELECT 1 FROM users WHERE email = :email AND deleted_at IS NULL)',
    ['email' => 'foo@bar']
);

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@mayken
Comment options

Answer selected by mayken
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants