Tomasz Sowa
21f12a8a98
Declare a cursor with the Finder::declare_cursor() method and next get the cursor with get_cursor(): morm::Cursor<MyObject> cursor = finder. declare_cursor("mycursorname"). select(). raw("ORDER BY column_name ASC"). get_cursor(); The cursor now can be used with fetch.*() methods and then get() or get_list(): MyObject myobject = cursor.fetch_next().get(); std::list<MyObject> myobjects = cursor.fetch_forward_count(10).get_list(); |
||
---|---|---|
samples | ||
src | ||
.editorconfig | ||
.gitignore | ||
LICENSE | ||
Makefile |