Struct Row

A struct to represent a single row of a result set.

struct Row ;

The row struct is used for both 'traditional' and 'prepared' result sets. It consists of parallel arrays of Variant and bool, with the bool array indicating which of the result set columns are NULL.

I have been agitating for some kind of null indicator that can be set for a Variant without destroying its inherent type information. If this were the case, then the bool array could disappear.

Constructors

NameDescription
this A constructor to extract the column data from a row data packet.

Properties

NameTypeDescription
length[get] ulongGet the number of elements (columns) in this row.

Methods

NameDescription
isNull Check if a column in the result row was NULL
opIndex Simplify retrieval of a column value by index.
show
toStruct Move the content of the row into a compatible struct

Aliases

NameDescription
opDollar Get the number of elements (columns) in this row.