QSelect class

Represents a standard field selection with optional alias.

This is the most common type of SELECT field, representing a single column from a table with an optional alias.

Example usage:

var field1 = QSelect('name'); // `name`
var field2 = QSelect('email', as: 'user_email'); // `email` AS `user_email`
Implemented types

Constructors

QSelect.new(String field, {String as = ''})
Creates a standard SELECT field with optional alias.

Properties

as String
Optional alias for the field
getter/setter pair
field String
The field name 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 field with optional alias.
override
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited