Home || Visual Search || Applications || Architecture || Important Messages || OGL || Src

std::string Impala::Application::VideoExcel::TableDataSourceSqliteDb::RetrieveTextFromDb ( std::string  field,
int  index 
) [inline]

Definition at line 88 of file TableDataSourceSqliteDb.h.

References mSqlDb.

00089     {
00090 
00091         std::ostringstream os;
00092         os << "select " << field << " from cache where idx=(" << index << ");";
00093         try
00094         {
00095             CppSQLite3Query q = mSqlDb->execQuery(os.str().c_str());
00096             std::string val = q.getStringField(field.c_str());
00097             return val;
00098         } catch (CppSQLite3Exception &e)
00099         {
00100             return "";
00101         }
00102     }


Generated on Thu Jan 13 09:16:35 2011 for ImpalaSrc by  doxygen 1.5.1