ResultRange.oneValue

Gets only the first value of the first row returned by the execution of the statement.

struct ResultRange
oneValue
(
T
)
(
)

Examples

auto db = Database(":memory:");
db.execute("CREATE TABLE test (val INTEGER)");
auto count = db.execute("SELECT count(*) FROM test").oneValue!long;
assert(count == 0);

Meta