OpenMS  2.8.0
Functions
Functions for getting values from sql-select statements

Functions

double extractDouble (sqlite3_stmt *stmt, int pos)
 
float extractFloat (sqlite3_stmt *stmt, int pos)
 convenience function; note: in SQL there is no float, just double. So this might be narrowing. More...
 
int extractInt (sqlite3_stmt *stmt, int pos)
 
Int64 extractInt64 (sqlite3_stmt *stmt, int pos)
 
String extractString (sqlite3_stmt *stmt, int pos)
 
char extractChar (sqlite3_stmt *stmt, int pos)
 
bool extractBool (sqlite3_stmt *stmt, int pos)
 

Detailed Description

All these function throw Exception::SqlOperationFailed if the given position is of the wrong type.

Function Documentation

◆ extractBool()

bool OpenMS::Internal::SqliteHelper::extractBool ( sqlite3_stmt *  stmt,
int  pos 
)

◆ extractChar()

char OpenMS::Internal::SqliteHelper::extractChar ( sqlite3_stmt *  stmt,
int  pos 
)

◆ extractDouble()

double OpenMS::Internal::SqliteHelper::extractDouble ( sqlite3_stmt *  stmt,
int  pos 
)

◆ extractFloat()

float OpenMS::Internal::SqliteHelper::extractFloat ( sqlite3_stmt *  stmt,
int  pos 
)

convenience function; note: in SQL there is no float, just double. So this might be narrowing.

◆ extractInt()

int OpenMS::Internal::SqliteHelper::extractInt ( sqlite3_stmt *  stmt,
int  pos 
)

◆ extractInt64()

Int64 OpenMS::Internal::SqliteHelper::extractInt64 ( sqlite3_stmt *  stmt,
int  pos 
)

◆ extractString()

String OpenMS::Internal::SqliteHelper::extractString ( sqlite3_stmt *  stmt,
int  pos 
)