Trait sqlx::ValueRef[][src]

pub trait ValueRef<'r> {
    type Database: Database;
    fn to_owned(&self) -> <Self::Database as Database>::Value;
fn type_info(&self) -> Cow<'_, <Self::Database as Database>::TypeInfo>;
fn is_null(&self) -> bool; }
Expand description

A reference to a single value from the database.

Associated Types

Required methods

Creates an owned value from this value reference.

This is just a reference increment in PostgreSQL and MySQL and thus is O(1). In SQLite, this is a copy.

Get the type information for this value.

Returns true if the SQL value is NULL.

Implementors