Trait UpdateVTab

Source
pub trait UpdateVTab<'vtab>: CreateVTab<'vtab> {
    // Required methods
    fn delete(&mut self, arg: ValueRef<'_>) -> Result<()>;
    fn insert(&mut self, args: &Values<'_>) -> Result<i64>;
    fn update(&mut self, args: &Values<'_>) -> Result<()>;
}
Expand description

Writable virtual table instance trait.

(See SQLite doc)

Required Methods§

Source

fn delete(&mut self, arg: ValueRef<'_>) -> Result<()>

Delete rowid or PK

Source

fn insert(&mut self, args: &Values<'_>) -> Result<i64>

Insert: args[0] == NULL: old rowid or PK, args[1]: new rowid or PK, args[2]: ...

Return the new rowid.

Source

fn update(&mut self, args: &Values<'_>) -> Result<()>

Update: args[0] != NULL: old rowid or PK, args[1]: new row id or PK, args[2]: ...

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§