Row allows field values to be retrieved as if they were getters.

c.query("select 'blah' as my_field")
   .single
   .then((row) => print(row.my_field));

Or by index.

c.query("select 'blah'")
   .single
   .then((row) => print(row[0]));
Annotations
  • proxy

Constructors

Row()

Properties

hashCode → int

Get a hash code for this object.

read-only, inherited
runtimeType → Type

A representation of the runtime type of the object.

read-only, inherited

Operators

operator ==(other) → bool

The equality operator.

inherited
operator [](int i) → dynamic

Get a column value by column index (zero based).

Methods

forEach(void f(String columnName, columnValue)) → void

Iterate through column names and values.

getColumns() → List<Column>

noSuchMethod(Invocation invocation) → dynamic

Invoked when a non-existent method or property is accessed.

inherited
toList() → List

An unmodifiable list of column values.

toMap() → Map

An unmodifiable map of column names and values.

toString() → String

Returns a string representation of this object.

inherited