C API: Virtual Table Cursor Object
(c3ref/vtab_cursor.html)
struct sqlite3_vtab_cursor
Every virtual table module implementation uses a subclass of the
following structure to describe cursors that point into the
virtual table and are used
to loop through the virtual table. Cursors are created using the
xOpen method of the module ...
|
The SQLite Bytecode Engine
(opcode.html)
2.4. B-Tree Cursors
A prepared statement can have
zero or more open cursors. Each cursor is identified by a
small integer, which is usually the P1 parameter to the opcode
that uses the cursor.
There can be multiple cursors open on the same ...
|
C API: Flush caches to disk mid-transaction
(c3ref/db_cacheflush.html)
sqlite3_db_cacheflush()
... A dirty page may be in use if a database cursor created by an
active SQL statement is reading from it, or if it is page 1 of a database
file (page 1 is always "in use"). The sqlite3_db_cacheflush(D ...
|
The Use Of assert() In SQLite
(assert.html)
2. Examples
... For example, the sqlite3BtreeCloseCursor()
routine shown must remove the closing cursor from a linked list of all
cursors. We know that the cursor is on the list, so that the loop
must terminate by the "break" statement, but it is ...
|
The Virtual Table Mechanism Of SQLite
(vtab.html)
2.6. The xOpen Method
int (*xOpen)(sqlite3_vtab *pVTab, sqlite3_vtab_cursor **ppCursor);
The xOpen method creates a new cursor used for accessing (read and/or
writing) a virtual table. A successful invocation of this method
will allocate the memory for the sqlite3_vtab_cursor (or a subclass),
initialize ...
|
The Virtual Database Engine of SQLite
(vdbe.html)
... The Next instruction advances the cursor
P1 to the next record. If the cursor advance was successful, then jump
immediately to P2 (6, the beginning of the loop body). If the cursor
was at the end, then fall through to ...
|
Why SQLite Uses Bytecode
(whybytecode.html)
1.2. Definition Of "Bytecode"
... OP_SeekGE → Move a cursor on a particular B-Tree to the first
entry that is greater than or equal to a given key.
OP_Next → Advance a cursor on a particular B-Tree to the next
entry in the ...
|
Pointer Passing Interfaces
(bindptr.html)
3.1. Pointer Types
... The carray() function treats the
pointer as a pointer to an array of integers and returns each integer
one by one, thus leaking the content of the FTS3 cursor object. Since
the FTS3 cursor object contains pointers to other objects ...
|
Transaction
(lang_transaction.html)
... A statement finishes when its
last cursor closes, which is guaranteed to happen when the
prepared statement is reset or
finalized. Some statements might "finish"
for the purpose of transaction control prior to being reset or finalized,
but there is ...
|
Profiling SQL Queries
(profile.html)
5. Low-Level Profiling Data
... 0% 1 Rewind 0 14 0 0
7 46.86% 150000 Column 0 1 3 0 r[3]= cursor 0 column 1
8 18.94% 150000 Remainder 4 3 2 0 r[2]=r[3]%r[ ...
|
Page generated by FTS5 in about 37.30 ms.