UI: SqliteStmt: Add columnUInt64()

This commit is contained in:
Nodir Temirkhodjaev 2024-03-26 15:55:49 +03:00
parent 4f4c5babb4
commit 18dcb03136
2 changed files with 6 additions and 0 deletions

View File

@ -288,6 +288,11 @@ qint64 SqliteStmt::columnInt64(int column) const
return sqlite3_column_int64(m_stmt, column); return sqlite3_column_int64(m_stmt, column);
} }
quint64 SqliteStmt::columnUInt64(int column) const
{
return quint64(columnInt64(column));
}
double SqliteStmt::columnDouble(int column) const double SqliteStmt::columnDouble(int column) const
{ {
return sqlite3_column_double(m_stmt, column); return sqlite3_column_double(m_stmt, column);

View File

@ -62,6 +62,7 @@ public:
qint32 columnInt(int column = 0) const; qint32 columnInt(int column = 0) const;
quint32 columnUInt(int column = 0) const; quint32 columnUInt(int column = 0) const;
qint64 columnInt64(int column = 0) const; qint64 columnInt64(int column = 0) const;
quint64 columnUInt64(int column = 0) const;
double columnDouble(int column = 0) const; double columnDouble(int column = 0) const;
bool columnBool(int column = 0) const; bool columnBool(int column = 0) const;
QString columnText(int column = 0) const; QString columnText(int column = 0) const;