Database operation interfaces of cursor.
More...
#include <client.hpp>
|
|
| sdbCursor () |
| | default constructor
|
| |
|
| ~sdbCursor () |
| | destructor
|
| |
| INT32 | next (bson::BSONObj &obj) |
| | Return the next document of current cursor, and move forward.
|
| |
| INT32 | current (bson::BSONObj &obj) |
| | Return the current document of cursor, and don't move.
|
| |
| INT32 | close () |
| | Close the cursor's connection to database.
|
| |
Database operation interfaces of cursor.
| INT32 sdbclient::sdbCursor::close |
( |
| ) |
|
|
inline |
Close the cursor's connection to database.
- Return values
-
| SDB_OK | Operation Success |
| Others | Operation Fail |
| INT32 sdbclient::sdbCursor::current |
( |
bson::BSONObj & |
obj | ) |
|
|
inline |
Return the current document of cursor, and don't move.
- Parameters
-
| [out] | obj | The return bson object |
- Return values
-
| SDB_OK | Operation Success |
| Others | Operation Fail |
| INT32 sdbclient::sdbCursor::next |
( |
bson::BSONObj & |
obj | ) |
|
|
inline |
Return the next document of current cursor, and move forward.
- Parameters
-
| [out] | obj | The return bson object |
- Return values
-
| SDB_OK | Operation Success |
| Others | Operation Fail |
| sdbclient::sdbCursor::pCursor |
The documentation for this class was generated from the following file: