2015-08-31, 15:20
I'm working on my own feature request to hide unavailable library items. I need to add methods to VideoDatabase that gets some fields from a new table. I've looked at similar methods in VideoDatabase.cpp and many of them start with this
and then the query
But this is not the case with all methods. Most methods also end with
but not all.
The problem is that I get an exception if I just add this to my method.
I would be very happy if someone could explain what m_pDS and m_pDB is, and how I should use them to build my method.
Code:
if (!m_pDB.get() || !m_pDS.get())
return false;
Code:
sql = PrepareSQL("SELECT * FROM path);
m_pDS->query(sql.c_str());
while (!m_pDS->eof())
{
... Do stuff with the retrieved data ...
}
Code:
m_pDS->close();
The problem is that I get an exception if I just add this to my method.
I would be very happy if someone could explain what m_pDS and m_pDB is, and how I should use them to build my method.