21f12a8a98f3769b805136e2d3d7bfa6adca1e64
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();
Description
C++ ORM and Query Builder for PostgreSQL.
Languages
C++
98.5%
Shell
0.8%
C
0.4%
Makefile
0.3%