QSelectCustom class
Represents a custom SELECT field with optional alias.
This class wraps another QSelectField and optionally provides an alias for it. It's useful for creating complex field expressions with custom names.
Example usage:
var customField = QSelectCustom(QSelect('name'), as: 'full_name'); // `name` AS `full_name`
var customField2 = QSelectCustom(QMath('COUNT(*)')); // COUNT(*)
- Implemented types
Constructors
- QSelectCustom.new(QSelectField field, {String as = ''})
- Creates a custom SELECT field with optional alias.
Properties
- as ↔ String
-
Optional alias for the field
getter/setter pair
- field ↔ QSelectField
-
The underlying field to select
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toSQL(
) → String -
Generates the SQL for this custom field with optional alias.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited