We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The following code correctly streams results from a changes feed
static auto handle = std::async(std::launch::async, [](){ try { std::unique_ptr<RethinkDB::Connection> conn = RethinkDB::connect("172.17.10.61", 28015); RethinkDB::Cursor cursor = RethinkDB::table("leaderboard").changes().run(*conn); for (auto score = cursor.begin(); score != cursor.end(); ++score) { printf("%s\n", RethinkDB::write_datum(*score).c_str()); } } catch (RethinkDB::Error &err) { printf("%s\n", err.message.c_str()); } });
However adding a limit (which would need an order_by, but see #10 ) gives no more results.
static auto handle = std::async(std::launch::async, [](){ try { std::unique_ptr<RethinkDB::Connection> conn = RethinkDB::connect("172.17.10.61", 28015); RethinkDB::Cursor cursor = RethinkDB::table("leaderboard").limit(2).changes().run(*conn); for (auto score = cursor.begin(); score != cursor.end(); ++score) { printf("%s\n", RethinkDB::write_datum(*score).c_str()); } } catch (RethinkDB::Error &err) { printf("%s\n", err.message.c_str()); } });
The text was updated successfully, but these errors were encountered:
That query is invalid and should throw an error. I got the following error when I tested your code:
Cannot get changes on the first elements of an unordered stream.
Sorry, something went wrong.
It just gives zero results, no error was thrown
No branches or pull requests
The following code correctly streams results from a changes feed
However adding a limit (which would need an order_by, but see #10 ) gives no more results.
The text was updated successfully, but these errors were encountered: