mirror of
https://github.com/aljazceru/turso.git
synced 2025-12-18 17:14:20 +01:00
make query_start method to return bool - if result will have some rows or not
This commit is contained in:
@@ -87,7 +87,9 @@ pub trait IndexMethodCursor {
|
||||
/// For example, for 2 patterns ["SELECT * FROM {table} LIMIT ?", "SELECT * FROM {table} WHERE x = ?"], query_start(...) call can have following arguments:
|
||||
/// - [Integer(0), Integer(10)] - pattern "SELECT * FROM {table} LIMIT ?" was chosen with LIMIT parameter equals to 10
|
||||
/// - [Integer(1), Text("turso")] - pattern "SELECT * FROM {table} WHERE x = ?" was chosen with equality comparison equals to "turso"
|
||||
fn query_start(&mut self, values: &[Register]) -> Result<IOResult<()>>;
|
||||
///
|
||||
/// Returns false if query will produce no rows (similar to VFilter/Rewind op codes)
|
||||
fn query_start(&mut self, values: &[Register]) -> Result<IOResult<bool>>;
|
||||
|
||||
/// Moves cursor to the next response row
|
||||
/// Returns false if query exhausted all rows
|
||||
|
||||
Reference in New Issue
Block a user