IntField class

IntField is a convenience DSL used to construct queries in a concise and understandable way.

Example:

final age = IntField(age);
var value = await Find()
        .from('user')
        .where(age > 30)  // Simplifies query expressions
        .exec(adapter).one();
Inheritance

Constructors

IntField(String name)

Properties

hashCode int
The hash code for this object.
no setterinherited
isNotNull Cond<int>
Returns an "IS NOT" condition, i.e. 'where var IS NOT null'
no setterinherited
isNull Cond<int>
Returns an "IS" condition, i.e. 'where var IS null'
no setterinherited
name String
Name of the field
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tableName String?
finalinherited

Methods

aliasAs(String tableAlias) Field<int>
inherited
between(int low, int high) Between<int>
Returns an "in between" condition
inherited
create(Create statement, {bool autoIncrement = false, bool primary = false, bool isNullable = false, String? foreignTable, String? foreignCol, String? uniqueGroup}) → void
Adds the field to create statement
eq(int value) Cond<int>
Returns an "is equal to" condition
inherited
eqF(String name, {String? table}) CondCol<int>
Returns an "is equal to" condition
inherited
eqField(Field<int> rhs) CondCol<int>
Returns an "is equal to" condition
inherited
gt(int value) Cond<int>
Returns a "greater than" condition
inherited
gtEq(int value) Cond<int>
Returns a "greater than equal to" condition
inherited
gtEqF(String name, {String? table}) CondCol<int>
Returns a "greater than equal to" condition
inherited
gtEqField(Field<int> rhs) CondCol<int>
Returns a "greater than equal to" condition
inherited
gtF(String name, {String? table}) CondCol<int>
Returns a "greater than" condition
inherited
gtField(Field<int> rhs) CondCol<int>
Returns a "greater than" condition
inherited
inBetweenFields(Field<int> low, Field<int> high) InBetweenCol<int>
Returns an "in between" condition
inherited
isIn(Set<int> value) InOperation<int>
Returns an "in" condition
inherited
lt(int value) Cond<int>
Returns a "less than" condition
inherited
ltEq(int value) Cond<int>
Returns a "less than equal to" condition
inherited
ltEqF(String name, {String? table}) CondCol<int>
Returns a "less than equal to" condition
inherited
ltEqField(Field<int> rhs) CondCol<int>
Returns a "less than equal to" condition
inherited
ltF(String name, {String? table}) CondCol<int>
Returns a "less than" condition
inherited
ltField(Field<int> rhs) CondCol<int>
Returns a "less than" condition
inherited
ne(int value) Cond<int>
Returns a "not equal to" condition
inherited
neF(String name, {String? table}) CondCol<int>
Returns a "not equal to" condition
inherited
neField(Field<int> rhs) CondCol<int>
Returns a "not equal to" condition
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
set(int? value) SetColumn<int>
Returns a "set column" clause
inherited
setNullable(int? value) SetColumn<int?>
inherited
toString() String
A string representation of this object.
inherited

Operators

operator <(int other) Cond<int>
inherited
operator <=(int other) Cond<int>
inherited
operator ==(Object other) bool
The equality operator.
inherited
operator >(int other) Cond<int>
inherited
operator >=(int other) Cond<int>
inherited