Main  /  Edit  /  History  /   /  Users Area


This class is used as intermediate storage of query result.

Information About Query

unsigned long long rows();
unsigned int cols();

Return number of rows and columns in result.

dbixx::result res;
sql<<"SELECT id FROM users";
cout<<"There are "<<res.rows()<<" users"<<endl;

Fetching Rows

bool next(dbixx::row &r);

This function fetches next row from the result. If there are no more rows to fetch, false is returned.

For example:

dbixx::result res;
dbixx::row r;
sql<<"SELECT id,name FROM users",res;
while( {
    string name;
    int id;
    r >> id >> name;


CppCMS is a web development framework for performance demanding applications.

Support This Project Logo

Поддержать проект

CppCMS needs You


Main Page

Valid CSS | Valid XHTML 1.0