Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class SQLiteDataReader
- {
- public:
- SQLiteDataReader(SQLiteCommand command)
- : m_command(command)
- {}
- bool Next()
- {
- try
- {
- m_currentRow = command.ExecuteRow();
- return true;
- }
- catch (const SQLiteDone& ex)
- {
- return false;
- }
- }
- SQLiteRow Get() const throw() { return m_currentRow; }
- private:
- SQLiteCommand m_command;
- SQLiteRow m_currentRow;
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement