between(mixed $from, mixed $to, string|null $type = null): Cake\Database\Expression\Predicate
Creates a between predicate with independently bound range endpoints.
mixed
$from
The beginning of the range.
mixed
$to
The end of the range.
string|null
$type
optional
The binding type, overriding the surrounding field type.
Cake\Database\Expression\Predicatecomparison(string $operator, mixed $value, string|null $type = null): Cake\Database\Expression\Predicate
Creates a comparison using a trusted SQL operator and a bound value.
The operator is SQL structure and must never be taken from untrusted input. Prefer a dedicated predicate function when one exists.
string
$operator
The trusted SQL operator.
mixed
$value
The value or expression to compare.
string|null
$type
optional
The binding type, overriding the surrounding field type.
Cake\Database\Expression\Predicateequals(mixed $value, string|null $type = null): Cake\Database\Expression\Predicate
Creates an equality predicate, using IS NULL when the value is null.
mixed
$value
The value or expression to compare.
string|null
$type
optional
The binding type, overriding the surrounding field type.
Cake\Database\Expression\PredicategreaterThan(mixed $value, string|null $type = null): Cake\Database\Expression\Predicate
Creates a predicate for a field greater than the supplied value.
mixed
$value
The value or expression to compare.
string|null
$type
optional
The binding type, overriding the surrounding field type.
Cake\Database\Expression\PredicategreaterThanOrEquals(mixed $value, string|null $type = null): Cake\Database\Expression\Predicate
Creates a predicate for a field greater than or equal to the supplied value.
mixed
$value
The value or expression to compare.
string|null
$type
optional
The binding type, overriding the surrounding field type.
Cake\Database\Expression\Predicatein(Cake\Database\ExpressionInterface|array|string $values, string|null $type = null): Cake\Database\Expression\Predicate
Creates a in predicate using the existing query builder's membership semantics.
Cake\Database\ExpressionInterface|array|string
$values
The membership values or subquery.
string|null
$type
optional
The element binding type, overriding the surrounding field type.
Cake\Database\Expression\PredicateinOrNull(Cake\Database\ExpressionInterface|array|string $values, string|null $type = null): Cake\Database\Expression\Predicate
Creates a inOrNull predicate using the existing query builder's membership semantics.
Cake\Database\ExpressionInterface|array|string
$values
The membership values or subquery.
string|null
$type
optional
The element binding type, overriding the surrounding field type.
Cake\Database\Expression\PredicateisDistinctFrom(mixed $value, string|null $type = null): Cake\Database\Expression\Predicate
Creates a predicate for a field distinct from the supplied value.
mixed
$value
The value or expression to compare.
string|null
$type
optional
The binding type, overriding the surrounding field type.
Cake\Database\Expression\PredicateisNotDistinctFrom(mixed $value, string|null $type = null): Cake\Database\Expression\Predicate
Creates a predicate for a field not distinct from the supplied value.
mixed
$value
The value or expression to compare.
string|null
$type
optional
The binding type, overriding the surrounding field type.
Cake\Database\Expression\PredicateisNotNull(): Cake\Database\Expression\Predicate
Creates a isNotNull predicate without binding a value.
Cake\Database\Expression\PredicateisNull(): Cake\Database\Expression\Predicate
Creates a isNull predicate without binding a value.
Cake\Database\Expression\PredicatelessThan(mixed $value, string|null $type = null): Cake\Database\Expression\Predicate
Creates a predicate for a field less than the supplied value.
mixed
$value
The value or expression to compare.
string|null
$type
optional
The binding type, overriding the surrounding field type.
Cake\Database\Expression\PredicatelessThanOrEquals(mixed $value, string|null $type = null): Cake\Database\Expression\Predicate
Creates a predicate for a field less than or equal to the supplied value.
mixed
$value
The value or expression to compare.
string|null
$type
optional
The binding type, overriding the surrounding field type.
Cake\Database\Expression\Predicatelike(mixed $value, string|null $type = null): Cake\Database\Expression\Predicate
Creates a predicate for a field matching the SQL pattern the supplied value.
mixed
$value
The value or expression to compare.
string|null
$type
optional
The binding type, overriding the surrounding field type.
Cake\Database\Expression\PredicatenotBetween(mixed $from, mixed $to, string|null $type = null): Cake\Database\Expression\Predicate
Creates a notBetween predicate with independently bound range endpoints.
mixed
$from
The beginning of the range.
mixed
$to
The end of the range.
string|null
$type
optional
The binding type, overriding the surrounding field type.
Cake\Database\Expression\PredicatenotEquals(mixed $value, string|null $type = null): Cake\Database\Expression\Predicate
Creates an inequality predicate, using IS NOT NULL when the value is null.
mixed
$value
The value or expression to compare.
string|null
$type
optional
The binding type, overriding the surrounding field type.
Cake\Database\Expression\PredicatenotIn(Cake\Database\ExpressionInterface|array|string $values, string|null $type = null): Cake\Database\Expression\Predicate
Creates a notIn predicate using the existing query builder's membership semantics.
Cake\Database\ExpressionInterface|array|string
$values
The membership values or subquery.
string|null
$type
optional
The element binding type, overriding the surrounding field type.
Cake\Database\Expression\PredicatenotInOrNull(Cake\Database\ExpressionInterface|array|string $values, string|null $type = null): Cake\Database\Expression\Predicate
Creates a notInOrNull predicate using the existing query builder's membership semantics.
Cake\Database\ExpressionInterface|array|string
$values
The membership values or subquery.
string|null
$type
optional
The element binding type, overriding the surrounding field type.
Cake\Database\Expression\PredicatenotLike(mixed $value, string|null $type = null): Cake\Database\Expression\Predicate
Creates a predicate for a field not matching the SQL pattern the supplied value.
mixed
$value
The value or expression to compare.
string|null
$type
optional
The binding type, overriding the surrounding field type.
Cake\Database\Expression\PredicateDescribes a getter and a setter for the a field property. Useful for expressions that contain an identifier to compare against.
This defines the functions used for building window expressions.
This represents an SQL aggregate function expression in an SQL statement. Calls can be constructed by passing the name of the function and a list of params. For security reasons, all params passed are quoted by default unless explicitly told otherwise.
An expression object that represents a SQL BETWEEN snippet
Represents a SQL case statement with a fluid API
Represents a SQL CAST expression in a SQL statement.
This class represents a SQL CAST operation that converts an expression to a specific database type. For example: CAST(field AS INTEGER)
An expression that represents a common table expression definition.
A Comparison is a type of query expression that represents an operation
involving a field an operator and a value. In its most common form the
string representation of a comparison is field = value
A Comparison is a type of query expression that represents IS DISTINCT FROM
or IS NOT DISTINCT FROM operations.
This class represents a function call string in a SQL statement. Calls can be constructed by passing the name of the function and a list of params. For security reasons, all params passed are quoted by default unless explicitly told otherwise.
Represents a single identifier name in the database.
Identifier values are unsafe with user supplied data. Values will be quoted when identifier quoting is enabled.
Represents a JSON path expression with optional clauses for each json function.
An expression object for ORDER BY clauses
An expression object for complex ORDER BY clauses
Defers a predicate until its field and binding type are supplied by a condition array.
Represents a SQL Query expression. Internally it stores a tree of expressions that can be compiled by converting this object to string and will contain a correctly parenthesized and nested expression.
Portable string aggregation expression that can render as STRING_AGG or GROUP_CONCAT depending on the driver dialect.
String expression with collation.
This expression represents SQL fragments that are used for comparing one tuple to another, one tuple to a set of other tuples or one tuple to an expression
An expression object that represents an expression with only a single operand.
An expression object to contain values being inserted.
Helps generate SQL with the correct number of placeholders and bind values correctly into the statement.
Represents a SQL when/then clause with a fluid API
This represents a SQL window expression used by aggregate and window functions.
Trait that holds shared functionality for case related expressions.
Contains the field property with a getter and a setter for it
Shared database type inference helpers.