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
  • Object
  • Field<int>
  • IntField

Constructors

IntField(String name)

Properties

hashCode → int
The hash code for this object.
read-only, inherited
name → String
Name of the field
final, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited
tableName → String
final, inherited

Methods

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
aliasAs(String tableAlias) Field<int>
inherited
between(int low, int high) Between<int>
Returns an "in between" condition [...]
inherited
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
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 non-existent method or property is accessed.
inherited
set(int value) SetColumn<int>
Returns a "set column" clause [...]
inherited
toString() → String
Returns a string representation of this object.
inherited

Operators

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