pub struct GenerateSeriesTable;Expand description
Virtual table that generates a sequence of integers.
Usage: SELECT value FROM generate_series(1, 10) produces rows 1..=10.
Optional third argument specifies step (default 1).
Trait Implementations§
Source§impl VirtualTable for GenerateSeriesTable
impl VirtualTable for GenerateSeriesTable
Source§type Cursor = GenerateSeriesCursor
type Cursor = GenerateSeriesCursor
The cursor type for scanning this virtual table.
Source§fn create(_cx: &Cx, _args: &[&str]) -> Result<Self>
fn create(_cx: &Cx, _args: &[&str]) -> Result<Self>
Called for
CREATE VIRTUAL TABLE. Read moreSource§fn connect(_cx: &Cx, _args: &[&str]) -> Result<Self>
fn connect(_cx: &Cx, _args: &[&str]) -> Result<Self>
Called for subsequent opens of an existing virtual table.
Source§fn best_index(&self, info: &mut IndexInfo) -> Result<()>
fn best_index(&self, info: &mut IndexInfo) -> Result<()>
Inform the query planner about available indexes and their costs.
Source§fn disconnect(&mut self, _cx: &Cx) -> Result<(), FrankenError>
fn disconnect(&mut self, _cx: &Cx) -> Result<(), FrankenError>
Drop a virtual table instance (opposite of
connect).Source§fn destroy(&mut self, cx: &Cx) -> Result<(), FrankenError>
fn destroy(&mut self, cx: &Cx) -> Result<(), FrankenError>
Called for
DROP VIRTUAL TABLE — destroy backing storage. Read moreSource§fn update(
&mut self,
_cx: &Cx,
_args: &[SqliteValue],
) -> Result<Option<i64>, FrankenError>
fn update( &mut self, _cx: &Cx, _args: &[SqliteValue], ) -> Result<Option<i64>, FrankenError>
INSERT/UPDATE/DELETE on the virtual table. Read more
Source§fn sync_txn(&mut self, _cx: &Cx) -> Result<(), FrankenError>
fn sync_txn(&mut self, _cx: &Cx) -> Result<(), FrankenError>
Sync a virtual table transaction (phase 1 of 2PC).
Source§fn commit(&mut self, _cx: &Cx) -> Result<(), FrankenError>
fn commit(&mut self, _cx: &Cx) -> Result<(), FrankenError>
Commit a virtual table transaction.
Source§fn rollback(&mut self, _cx: &Cx) -> Result<(), FrankenError>
fn rollback(&mut self, _cx: &Cx) -> Result<(), FrankenError>
Roll back a virtual table transaction.
Source§fn rename(&mut self, _cx: &Cx, _new_name: &str) -> Result<(), FrankenError>
fn rename(&mut self, _cx: &Cx, _new_name: &str) -> Result<(), FrankenError>
Rename the virtual table. Read more
Source§fn savepoint(&mut self, _cx: &Cx, _n: i32) -> Result<(), FrankenError>
fn savepoint(&mut self, _cx: &Cx, _n: i32) -> Result<(), FrankenError>
Create a savepoint at level
n.Source§fn release(&mut self, _cx: &Cx, _n: i32) -> Result<(), FrankenError>
fn release(&mut self, _cx: &Cx, _n: i32) -> Result<(), FrankenError>
Release savepoint at level
n.Source§fn rollback_to(&mut self, _cx: &Cx, _n: i32) -> Result<(), FrankenError>
fn rollback_to(&mut self, _cx: &Cx, _n: i32) -> Result<(), FrankenError>
Roll back to savepoint at level
n.Auto Trait Implementations§
impl Freeze for GenerateSeriesTable
impl RefUnwindSafe for GenerateSeriesTable
impl Send for GenerateSeriesTable
impl Sync for GenerateSeriesTable
impl Unpin for GenerateSeriesTable
impl UnsafeUnpin for GenerateSeriesTable
impl UnwindSafe for GenerateSeriesTable
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> ErasedVtabInstance for T
impl<T> ErasedVtabInstance for T
Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Return this instance as
Any for downcasting to concrete extension types.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Return this instance as mutable
Any for downcasting to concrete extension types.Source§fn open_cursor(&self) -> Result<Box<dyn ErasedVtabCursor>, FrankenError>
fn open_cursor(&self) -> Result<Box<dyn ErasedVtabCursor>, FrankenError>
Open a new scan cursor.
Source§fn update(
&mut self,
cx: &Cx,
args: &[SqliteValue],
) -> Result<Option<i64>, FrankenError>
fn update( &mut self, cx: &Cx, args: &[SqliteValue], ) -> Result<Option<i64>, FrankenError>
INSERT/UPDATE/DELETE on the virtual table.
Source§fn rollback(&mut self, cx: &Cx) -> Result<(), FrankenError>
fn rollback(&mut self, cx: &Cx) -> Result<(), FrankenError>
Roll back a virtual table transaction.
Source§fn savepoint(&mut self, cx: &Cx, n: i32) -> Result<(), FrankenError>
fn savepoint(&mut self, cx: &Cx, n: i32) -> Result<(), FrankenError>
Create a savepoint at level
n.Source§fn release(&mut self, cx: &Cx, n: i32) -> Result<(), FrankenError>
fn release(&mut self, cx: &Cx, n: i32) -> Result<(), FrankenError>
Release savepoint at level
n.Source§fn rollback_to(&mut self, cx: &Cx, n: i32) -> Result<(), FrankenError>
fn rollback_to(&mut self, cx: &Cx, n: i32) -> Result<(), FrankenError>
Roll back to savepoint at level
n.Source§fn rename(&mut self, cx: &Cx, new_name: &str) -> Result<(), FrankenError>
fn rename(&mut self, cx: &Cx, new_name: &str) -> Result<(), FrankenError>
Rename the virtual table.
Source§fn best_index(&self, info: &mut IndexInfo) -> Result<(), FrankenError>
fn best_index(&self, info: &mut IndexInfo) -> Result<(), FrankenError>
Inform the query planner about available indexes.