Row

A row returned when stepping over an SQLite prepared statement.

The data of each column can be retrieved:

  • using Row as a random-access range of ColumnData.
  • using the more direct peek functions.

Warning: The data of the row is invalid when the next row is accessed (after a call to ResultRange.popFront()).

Members

Functions

as
T as()

Returns a struct with field members populated from the row's data.

back
ColumnData back()

Range interface.

columnDatabaseName
string columnDatabaseName(size_t index)
string columnDatabaseName(string columnName)

Determines the name of the database, table, or column that is the origin of a particular result column in SELECT statement.

columnDeclaredTypeName
string columnDeclaredTypeName(size_t index)
string columnDeclaredTypeName(string columnName)

Determines the type of the data in a particular column.

columnName
string columnName(size_t index)

Determines the name of a particular column.

columnOriginName
string columnOriginName(size_t index)
string columnOriginName(string columnName)
columnTableName
string columnTableName(size_t index)
string columnTableName(string columnName)

Determines the name of the database, table, or column that is the origin of a particular result column in SELECT statement.

columnType
SqliteType columnType(size_t index)
SqliteType columnType(string columnName)

Determines the type of the data in a particular column.

empty
bool empty()
front
ColumnData front()
length
size_t length()
opIndex
ColumnData opIndex(size_t index)
ColumnData opIndex(string columnName)

Range interface.

peek
T peek(size_t index)
T peek(size_t index)
T peek(size_t index)
T peek(size_t index)
T peek(size_t index)
T peek(size_t index)
T peek(string columnName)

Returns the data of a column directly.

popBack
void popBack()
popFront
void popFront()
save
Row save()

Range interface.

Meta