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: &Connection) -> Result<c_int> {
    conn.execute("INSERT INTO people (name) VALUES (?)", &[&Null])
}

Trait Implementations

impl ToSql for Null

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

Derived Implementations

impl Clone for Null

fn clone(&self) -> Null

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

impl Copy for Null