Enum rusqlite::types::Value [] [src]

pub enum Value {
    Null,
    Integer(i64),
    Real(f64),
    Text(String),
    Blob(Vec<u8>),
}

Dynamic type value (http://sqlite.org/datatype3.html) Value's type is dictated by SQLite (not by the caller).

Variants

Null

The value is a NULL value.

Integer(i64)

The value is a signed integer.

Real(f64)

The value is a floating point number.

Text(String)

The value is a text string.

Blob(Vec<u8>)

The value is a blob of data

Trait Implementations

impl PartialEq for Value
[src]

fn eq(&self, __arg_0: &Value) -> bool

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, __arg_0: &Value) -> bool

This method tests for !=.

impl Debug for Value
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Clone for Value
[src]

fn clone(&self) -> Value

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 FromSql for Value
[src]

unsafe fn column_result(stmt: *mut sqlite3_stmt, col: c_int) -> Result<Value>

unsafe fn column_has_valid_sqlite_type(_: *mut sqlite3_stmt, _: c_int) -> bool

FromSql types can implement this method and use sqlite3_column_type to check that the type reported by SQLite matches a type suitable for Self. This method is used by Row::get_checked to confirm that the column contains a valid type before attempting to retrieve the value. Read more