PqResult class

Implemented types

Constructors

PqResult(LibPq psql, Pointer<pg_result> res, String query)

Properties

affectedRows int
no setter
columnNames List<String>
getter/setter pair
columns int
Returns the number of columns in the result
no setter
empty bool
Returns true, if the result is empty
no setter
hashCode int
The hash code for this object.
no setterinherited
psql LibPq
final
query String
final
res Pointer<pg_result>
getter/setter pair
rows int
Returns the number of rows in the result
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
valid bool
Returns true, if the result is valid
no setter

Methods

asMapList() List<Map<String, dynamic>>
columnIndex(String column) int
columnName(int column) String
Returns the column name
columnType(int column) int
Returns the column type oid
columnTypeName(int column) String
Returns the column name
dispose() → void
override
dump() → void
getBoolean(int row, int column) bool
getDouble(int row, int column) double
getInt(int row, int column) int
getValueAsBytes(int row, int column, {int? length}) Uint8List
getValueAsString(int row, int column, {int? length, Encoding? encoding}) String
Access to the data Access to the data
getValueByColNameAsString(int row, String column, {int? length, Encoding? encoding}) String
Access to the data
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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