Parenthesis
Open or close parenthesis Sintaxe
//Version 2024.02.22.00
namespace ProtocolLive\PhpLiveDb\Enums; enum Parenthesis{
case
Close;
}
case None; case Open; Examples
$consult
=
$Db->Select('users');
$consult->WhereAdd(
'active',
);true, Types::Bool $consult->WhereAdd(
'type',
);1, Types::Int, Parenthesis: Parenthesis::Open $consult->WhereAdd(
'type',
);2, Types::Int AndOr: AndOr::Or, CustomPlaceholder: 'type2', Parenthesis: Parenthesis::Close $consult->Run(); //select * from users where active=:active and (type=:type or type=:type2) //select * from users where active=1 and (type=1 or type=2) |