VirtualTableCursor
public protocol VirtualTableCursor
A cursor for an SQLite virtual table
-
Returns the value of column
indexin the row at which the cursor is pointingNote
Column indexes are 0-based
Throws
SQLiteErrorif an error occursDeclaration
Swift
func column(_ index: Int32) throws -> DatabaseValueParameters
indexThe desired column
Return Value
The value of column
indexin the current row -
Advances the cursor to the next row of output
Throws
SQLiteErrorif an error occursDeclaration
Swift
func next() throws -
Returns the rowid for the current row
Throws
SQLiteErrorif an error occursDeclaration
Swift
func rowid() throws -> Int64Return Value
The rowid of the current row
-
Applies a filter to the virtual table
Throws
SQLiteErrorif an error occursDeclaration
Swift
func filter(_ arguments: [DatabaseValue], indexNumber: Int32, indexName: String?) throwsParameters
argumentsArguments applicable to the query plan made in
VirtualTableModule.bestIndex()indexNumberThe index number returned by
VirtualTableModule.bestIndex()indexNameThe index name returned by
VirtualTableModule.bestIndex() -
trueif the cursor has been moved off the last row of outputDeclaration
Swift
var eof: Bool { get }
View on GitHub
VirtualTableCursor Protocol Reference