diff options
author | Joas Schilling <coding@schilljs.com> | 2017-01-05 11:45:10 +0100 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2017-01-05 14:30:25 +0100 |
commit | 4128a08333746638e7a872ca89f1431cae68161d (patch) | |
tree | 0e7fad7d5d30c040a37e39e0fa1126bb5be476fe /lib/public/DB/QueryBuilder | |
parent | 5d01004368c4b1a3898831955fac58a86184af5a (diff) | |
download | nextcloud-server-4128a08333746638e7a872ca89f1431cae68161d.tar.gz nextcloud-server-4128a08333746638e7a872ca89f1431cae68161d.zip |
Add bitwise AND and OR to the expression builder
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/public/DB/QueryBuilder')
-rw-r--r-- | lib/public/DB/QueryBuilder/IExpressionBuilder.php | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/lib/public/DB/QueryBuilder/IExpressionBuilder.php b/lib/public/DB/QueryBuilder/IExpressionBuilder.php index 8164c738ca5..c123875b803 100644 --- a/lib/public/DB/QueryBuilder/IExpressionBuilder.php +++ b/lib/public/DB/QueryBuilder/IExpressionBuilder.php @@ -305,6 +305,27 @@ interface IExpressionBuilder { */ public function notIn($x, $y, $type = null); + + /** + * Creates a bitwise AND comparison + * + * @param string|ILiteral $x The field or value to check + * @param int $y Bitmap that must be set + * @return IQueryFunction + * @since 12.0.0 + */ + public function bitwiseAnd($x, $y); + + /** + * Creates a bitwise OR comparison + * + * @param string|ILiteral $x The field or value to check + * @param int $y Bitmap that must be set + * @return IQueryFunction + * @since 12.0.0 + */ + public function bitwiseOr($x, $y); + /** * Quotes a given input parameter. * |