The OpenD Programming Language

MySqlResult

Represents a query result. You can loop over this with a foreach statement to access individual rows.

Rows expose both an index and associative array interface, so you can get row[0] for the first item, or row["name"] to get a column by name from the result set.

class MySqlResult : ResultSet {
string sql;
bool[] columnIsNull;
Row row;
}

Destructor

A destructor is present on this object, but not explicitly documented in the source.

Members

Functions

empty
bool empty()

Range primitive used by foreach You may also use this to check if there was any result.

front
Row front()

Range primitive used by foreach

length
size_t length()

The number of returned rows

popFront
void popFront()

Range primitive used by foreach

Meta