sdk/dotnet/src/Microsoft.Datasync.Client.SQLiteStore/Driver/SqliteStatement.cs
/// <summary>
/// Gets the value of the column at the specified index in the current row.
/// </summary>
/// <param name="index">The index of the column.</param>
/// <returns>The column value.</returns>
Gets the value of the column at the specified index in the current row.
Gets the value of the column at the specified index in the current row .
private object GetColumnValue(int index)
        {
            var type = raw.sqlite3_column_type(stmt, index);
            return type switch
            {
                raw.SQLITE_INTEGER => raw.sqlite3_column_int64(stmt, index),
                raw.SQLITE_FLOAT => raw.sqlite3_column_double(stmt, index),
                raw.SQLITE_TEXT => raw.sqlite3_column_text(stmt, index).utf8_to_string(),
                raw.SQLITE_BLOB => raw.sqlite3_column_blob(stmt, index).ToArray(),
                _ => null
            };
        }
private object GetColumnValue ( int index ) { var type = raw . sqlite3_column_type ( stmt , index ) ; return type switch { raw . SQLITE_INTEGER => raw . sqlite3_column_int64 ( stmt , index ) , raw . SQLITE_FLOAT => raw . sqlite3_column_double ( stmt , index ) , raw . SQLITE_TEXT => raw . sqlite3_column_text ( stmt , index ) . utf8_to_string ( ) , raw . SQLITE_BLOB => raw . sqlite3_column_blob ( stmt , index ) . ToArray ( ) , _ => null } ; }
Gets the value of the column at the specified index in the current row.
Gets the value of the column at the specified index in the current row .
The column value.
The column value .
index
int
The index of the column.
The index of the column .