Struct diesel::sql_types::Binary
[−]
[src]
pub struct Binary;
The binary SQL type.
Schema inference will treat all variants of BLOB
as this type (e.g.
VARBINARY
, MEDIUMBLOB
, etc).
ToSql
impls
FromSql
impls
Trait Implementations
impl QueryId for Binary
[src]
type QueryId = Binary
A type which uniquely represents Self
in a SQL query. Read more
const HAS_STATIC_QUERY_ID: bool
HAS_STATIC_QUERY_ID: bool = true
Can the SQL generated by Self
be uniquely identified by its type? Read more
fn query_id() -> Option<TypeId>
[src]
Returns the type id of Self::QueryId
if Self::HAS_STATIC_QUERY_ID
. Returns None
otherwise. Read more
impl NotNull for Binary
[src]
impl SingleValue for Binary
[src]
impl HasSqlType<Binary> for Sqlite
[src]
fn metadata(_: &()) -> SqliteType
[src]
Fetch the metadata for the given type Read more
fn row_metadata(
out: &mut Vec<Self::TypeMetadata>,
lookup: &Self::MetadataLookup
)
[src]
out: &mut Vec<Self::TypeMetadata>,
lookup: &Self::MetadataLookup
)
Fetch the metadata for a tuple representing an entire row Read more
impl HasSqlType<Binary> for Mysql
[src]
fn metadata(_: &()) -> MysqlType
[src]
Fetch the metadata for the given type Read more
fn row_metadata(
out: &mut Vec<Self::TypeMetadata>,
lookup: &Self::MetadataLookup
)
[src]
out: &mut Vec<Self::TypeMetadata>,
lookup: &Self::MetadataLookup
)
Fetch the metadata for a tuple representing an entire row Read more
impl HasSqlType<Binary> for Pg
[src]
fn metadata(_: &PgMetadataLookup) -> PgTypeMetadata
[src]
Fetch the metadata for the given type Read more
fn row_metadata(
out: &mut Vec<Self::TypeMetadata>,
lookup: &Self::MetadataLookup
)
[src]
out: &mut Vec<Self::TypeMetadata>,
lookup: &Self::MetadataLookup
)
Fetch the metadata for a tuple representing an entire row Read more
impl Debug for Binary
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Clone for Binary
[src]
fn clone(&self) -> Binary
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Copy for Binary
[src]
impl Default for Binary
[src]
impl FromSql<Binary, Sqlite> for *const [u8]
[src]
The returned pointer is only valid for the lifetime to the argument of
from_sql
. This impl is intended for uses where you want to write a new
impl in terms of Vec<u8>
, but don't want to allocate. We have to return a
raw pointer instead of a reference with a lifetime due to the structure of
FromSql
impl<'expr> AsExpression<Binary> for &'expr Vec<u8>
[src]
type Expression = Bound<Binary, Self>
The expression being returned
fn as_expression(self) -> Self::Expression
[src]
Perform the conversion
impl<'expr2, 'expr> AsExpression<Binary> for &'expr2 &'expr Vec<u8>
[src]
type Expression = Bound<Binary, Self>
The expression being returned
fn as_expression(self) -> Self::Expression
[src]
Perform the conversion
impl AsExpression<Binary> for Vec<u8>
[src]
type Expression = Bound<Binary, Self>
The expression being returned
fn as_expression(self) -> Self::Expression
[src]
Perform the conversion
impl<'expr> AsExpression<Binary> for &'expr [u8]
[src]
type Expression = Bound<Binary, Self>
The expression being returned
fn as_expression(self) -> Self::Expression
[src]
Perform the conversion
impl<'expr2, 'expr> AsExpression<Binary> for &'expr2 &'expr [u8]
[src]
type Expression = Bound<Binary, Self>
The expression being returned
fn as_expression(self) -> Self::Expression
[src]
Perform the conversion
impl<DB: Backend<RawValue = [u8]>> FromSql<Binary, DB> for *const [u8]
[src]
The returned pointer is only valid for the lifetime to the argument of
from_sql
. This impl is intended for uses where you want to write a new
impl in terms of Vec<u8>
, but don't want to allocate. We have to return a
raw pointer instead of a reference with a lifetime due to the structure of
FromSql
impl<DB> ToSql<Binary, DB> for Vec<u8> where
DB: Backend,
[u8]: ToSql<Binary, DB>,
[src]
DB: Backend,
[u8]: ToSql<Binary, DB>,