📄 usage_cursor.txt
字号:
/* 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -