VirtualTableCursor

Represents a VirtualTable cursor used to read and/or write the virtual table.

If an error is detected in a function exposed by this interface, and if error raising is allowed by SQLite, it is allowed to raise an SQLiteException that is then reported to SQLite.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
abstract fun close()

Closes the cursor. It is not allowed to throw an SQLiteException here.

Link copied to clipboard

Returns the value of the indexth column. The returned Result must come from calling one of the receiver VirtualTableColumnScope's result methods.

Link copied to clipboard
abstract fun eof(): Boolean

Returns false if this cursor currently points to a valid row of data, true otherwise.

Link copied to clipboard
abstract fun VirtualTableFilterScope.filter(idxNum: Int, idxStr: String?, arguments: Array<ProtectedValue>)

Begins a search of the virtual table using the query plan selected by VirtualTable.bestIndex. idxNum and idxStr carry whatever values VirtualTable.bestIndex set on the index info, and arguments holds the value of each constraint marked as usable in that plan, in the order they were requested.

Link copied to clipboard
abstract fun next()

Advances this cursor to the next row of the result set initiated by filter.

Link copied to clipboard
abstract fun rowid(): Long

Returns the rowid this cursor is currently pointing at.