SafeResultRange.isValid

Check whether the range can still be used, or has been invalidated.

A SafeResultRange becomes invalidated (and thus cannot be used) when the server is sent another command on the same connection. When an invalidated SafeResultRange is used, a mysql.exceptions.MYXInvalidatedRange is thrown. If you need to send the server another command, but still access these results afterwords, you can save the results for later by converting this range to an array via std.array.array().

struct SafeResultRange
@safe @property const pure nothrow
bool
isValid
()

Meta