Struct rusqlite::types::Null [] [src]

pub struct Null;

Empty struct that can be used to fill in a query parameter as NULL.

Example

fn main() {
}
fn insert_null(conn: &SqliteConnection) -> SqliteResult<c_int> {
    conn.execute("INSERT INTO people (name) VALUES (?)", &[&Null])
}

Trait Implementations

impl Clone for Null
[src]

fn clone(&self) -> Null

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl Copy for Null
[src]

impl ToSql for Null
[src]

unsafe fn bind_parameter(&self, stmt: *mut sqlite3_stmt, col: c_int) -> c_int