usage_cursor.txt
来自「LiteSQL is a C++ library that integrates」· 文本 代码 · 共 33 行
TXT
33 行
/* LiteSQL - Documentation - Using Cursor * * By Tero Laitinen * * See LICENSE for copyright information. *//* \file usage_cursor.txt Manual *//** \page usage_cursor Using CursorOften it is not necessary to fetch all objects to memory and then process them.Memory usage can be minimized using template class Cursor which returns one object ata time.Creating a cursor(two ways):\codeCursor<Record> cur1 = db.cursor(SelectQuery().result("id_").source("Person_"));Cursor<Person> cur2 = select<Person>(db).cursor();\endcodeIterating through the result set:\codefor (;!cur.rowsLeft(); cur++) cout << (*cur).name << endl;\endcodeThe remaining contents of the result set can be retrieved with dump-method:\codevector<Person> rest = cur.dump();\endcode*/
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?