Struct diesel::pg::types::sql_types::Array
[−]
[src]
pub struct Array<ST>(_);
The Array
SQL type.
This wraps another type to represent a SQL array of that type. Multidimensional arrays are not supported, nor are arrays containing null.
ToSql
impls
FromSql
impls
Vec<T>
for anyT
which implementsToSql<ST>
Trait Implementations
impl<T: SqlOrd> SqlOrd for Array<T>
[src]
impl<T> HasSqlType<Array<T>> for Pg where
Pg: HasSqlType<T>,
[src]
Pg: HasSqlType<T>,
fn metadata(lookup: &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<T> NotNull for Array<T>
[src]
impl<T> SingleValue for Array<T>
[src]
impl<T, ST> FromSql<Array<ST>, Pg> for Vec<T> where
T: FromSql<ST, Pg>,
[src]
T: FromSql<ST, Pg>,
impl<'a, 'b, ST, T> AsExpression<Array<ST>> for &'a [T]
[src]
type Expression = Bound<Array<ST>, Self>
The expression being returned
fn as_expression(self) -> Self::Expression
[src]
Perform the conversion
impl<'a, 'b, ST, T> AsExpression<Array<ST>> for &'a &'b [T]
[src]
type Expression = Bound<Array<ST>, Self>
The expression being returned
fn as_expression(self) -> Self::Expression
[src]
Perform the conversion
impl<'a, 'b, ST, T> AsExpression<Array<ST>> for Vec<T>
[src]
type Expression = Bound<Array<ST>, Self>
The expression being returned
fn as_expression(self) -> Self::Expression
[src]
Perform the conversion
impl<'a, 'b, ST, T> AsExpression<Array<ST>> for &'a Vec<T>
[src]
type Expression = Bound<Array<ST>, Self>
The expression being returned
fn as_expression(self) -> Self::Expression
[src]
Perform the conversion
impl<'a, 'b, ST, T> AsExpression<Array<ST>> for &'a &'b Vec<T>
[src]
type Expression = Bound<Array<ST>, Self>
The expression being returned
fn as_expression(self) -> Self::Expression
[src]
Perform the conversion
impl<ST, T> ToSql<Array<ST>, Pg> for [T] where
Pg: HasSqlType<ST>,
T: ToSql<ST, Pg>,
[src]
Pg: HasSqlType<ST>,
T: ToSql<ST, Pg>,
impl<ST, T> ToSql<Array<ST>, Pg> for Vec<T> where
[T]: ToSql<Array<ST>, Pg>,
T: Debug,
[src]
[T]: ToSql<Array<ST>, Pg>,
T: Debug,
impl<ST: QueryId> QueryId for Array<ST>
[src]
type QueryId = Array<<ST as QueryId>::QueryId>
A type which uniquely represents Self
in a SQL query. Read more
const HAS_STATIC_QUERY_ID: bool
HAS_STATIC_QUERY_ID: bool = <ST as QueryId>::HAS_STATIC_QUERY_ID && 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<ST: Debug> Debug for Array<ST>
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl<ST: Clone> Clone for Array<ST>
[src]
fn clone(&self) -> Array<ST>
[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