Struct table
pub struct table;
Expand description
The actual table struct
This is the type which provides the base methods of the query
builder, such as .select
and .filter
.
Implementations§
Trait Implementations§
§impl AsQuery for table
impl AsQuery for table
§type SqlType = (Uuid, Nullable<Text>, Nullable<Integer>, Nullable<Text>, Nullable<Text>, Nullable<Integer>, Nullable<Text>, Nullable<Integer>, Nullable<Integer>, Nullable<Integer>, Nullable<Integer>, Nullable<Uuid>, Nullable<Timestamp>, Nullable<Integer>, Nullable<Text>, Nullable<Text>, Nullable<Text>, Nullable<Text>, Nullable<Float>, Nullable<Integer>, Nullable<Text>, Nullable<Text>, Nullable<Integer>, Nullable<Integer>, Nullable<Integer>, Nullable<Float>, Nullable<Text>, Nullable<Array<Text>>, Nullable<Array<Text>>, Nullable<Array<Uuid>>, Nullable<Array<Uuid>>, Nullable<Array<Uuid>>, Nullable<Text>, Nullable<Array<Uuid>>, Nullable<Text>)
type SqlType = (Uuid, Nullable<Text>, Nullable<Integer>, Nullable<Text>, Nullable<Text>, Nullable<Integer>, Nullable<Text>, Nullable<Integer>, Nullable<Integer>, Nullable<Integer>, Nullable<Integer>, Nullable<Uuid>, Nullable<Timestamp>, Nullable<Integer>, Nullable<Text>, Nullable<Text>, Nullable<Text>, Nullable<Text>, Nullable<Float>, Nullable<Integer>, Nullable<Text>, Nullable<Text>, Nullable<Integer>, Nullable<Integer>, Nullable<Integer>, Nullable<Float>, Nullable<Text>, Nullable<Array<Text>>, Nullable<Array<Text>>, Nullable<Array<Uuid>>, Nullable<Array<Uuid>>, Nullable<Array<Uuid>>, Nullable<Text>, Nullable<Array<Uuid>>, Nullable<Text>)
The SQL type of
Self::Query
§type Query = SelectStatement<table>
type Query = SelectStatement<table>
What kind of query does this type represent?
§impl<'a, T> Insertable<T> for &'a tablewhere
table: Insertable<T>,
impl<'a, T> Insertable<T> for &'a tablewhere
table: Insertable<T>,
§impl<T> Insertable<T> for table
impl<T> Insertable<T> for table
§type Values = <<table as AsQuery>::Query as Insertable<T>>::Values
type Values = <<table as AsQuery>::Query as Insertable<T>>::Values
The
VALUES
clause to insert these records Read moreSource§fn insert_into(self, table: T) -> InsertStatement<T, Self::Values>where
Self: Sized,
fn insert_into(self, table: T) -> InsertStatement<T, Self::Values>where
Self: Sized,
Insert
self
into a given table. Read more§impl<'insert> Insertable<table> for &'insert Media
impl<'insert> Insertable<table> for &'insert Media
§type Values = <(Option<Eq<uuid, <&'insert Uuid as AsExpression<<uuid as Expression>::SqlType>>::Expression>>, Option<Eq<image_list_name, <&'insert String as AsExpression<<image_list_name as Expression>::SqlType>>::Expression>>, Option<Eq<rating, <&'insert i32 as AsExpression<<rating as Expression>::SqlType>>::Expression>>, Option<Eq<publishing, <&'insert String as AsExpression<<publishing as Expression>::SqlType>>::Expression>>, Option<Eq<format_type, <&'insert String as AsExpression<<format_type as Expression>::SqlType>>::Expression>>, Option<Eq<realise_year, <&'insert i32 as AsExpression<<realise_year as Expression>::SqlType>>::Expression>>, Option<Eq<description, <&'insert String as AsExpression<<description as Expression>::SqlType>>::Expression>>, Option<Eq<image_resolution_x_min, <&'insert i32 as AsExpression<<image_resolution_x_min as Expression>::SqlType>>::Expression>>, Option<Eq<image_resolution_y_min, <&'insert i32 as AsExpression<<image_resolution_y_min as Expression>::SqlType>>::Expression>>, Option<Eq<image_resolution_x_max, <&'insert i32 as AsExpression<<image_resolution_x_max as Expression>::SqlType>>::Expression>>, Option<Eq<image_resolution_y_max, <&'insert i32 as AsExpression<<image_resolution_y_max as Expression>::SqlType>>::Expression>>, Option<Eq<updu, <&'insert Uuid as AsExpression<<updu as Expression>::SqlType>>::Expression>>, Option<Eq<updt, <&'insert NaiveDateTime as AsExpression<<updt as Expression>::SqlType>>::Expression>>, Option<Eq<ver, <&'insert i32 as AsExpression<<ver as Expression>::SqlType>>::Expression>>, Option<Eq<book_name, <&'insert String as AsExpression<<book_name as Expression>::SqlType>>::Expression>>, Option<Eq<book_isbn, <&'insert String as AsExpression<<book_isbn as Expression>::SqlType>>::Expression>>, Option<Eq<book_page_count, <&'insert String as AsExpression<<book_page_count as Expression>::SqlType>>::Expression>>, Option<Eq<audio_name, <&'insert String as AsExpression<<audio_name as Expression>::SqlType>>::Expression>>, Option<Eq<audio_bitrate, <&'insert f32 as AsExpression<<audio_bitrate as Expression>::SqlType>>::Expression>>, Option<Eq<audio_duration, <&'insert i32 as AsExpression<<audio_duration as Expression>::SqlType>>::Expression>>, Option<Eq<model_3d_name, <&'insert String as AsExpression<<model_3d_name as Expression>::SqlType>>::Expression>>, Option<Eq<video_name, <&'insert String as AsExpression<<video_name as Expression>::SqlType>>::Expression>>, Option<Eq<video_duration, <&'insert i32 as AsExpression<<video_duration as Expression>::SqlType>>::Expression>>, Option<Eq<video_resolution_x, <&'insert i32 as AsExpression<<video_resolution_x as Expression>::SqlType>>::Expression>>, Option<Eq<video_resolution_y, <&'insert i32 as AsExpression<<video_resolution_y as Expression>::SqlType>>::Expression>>, Option<Eq<video_fps, <&'insert f32 as AsExpression<<video_fps as Expression>::SqlType>>::Expression>>, Option<Eq<media_language_name, <&'insert String as AsExpression<<media_language_name as Expression>::SqlType>>::Expression>>, Option<Eq<keywords, <&'insert Vec<String> as AsExpression<<keywords as Expression>::SqlType>>::Expression>>, Option<Eq<age_category_types, <&'insert Vec<String> as AsExpression<<age_category_types as Expression>::SqlType>>::Expression>>, Option<Eq<authors, <&'insert Vec<Uuid> as AsExpression<<authors as Expression>::SqlType>>::Expression>>, Option<Eq<categories, <&'insert Vec<Uuid> as AsExpression<<categories as Expression>::SqlType>>::Expression>>, Option<Eq<favorites, <&'insert Vec<Uuid> as AsExpression<<favorites as Expression>::SqlType>>::Expression>>, Option<Eq<file, <&'insert String as AsExpression<<file as Expression>::SqlType>>::Expression>>, Option<Eq<organizations, <&'insert Vec<Uuid> as AsExpression<<organizations as Expression>::SqlType>>::Expression>>, Option<Eq<rstatus, <&'insert RStatus as AsExpression<<rstatus as Expression>::SqlType>>::Expression>>) as Insertable<table>>::Values
type Values = <(Option<Eq<uuid, <&'insert Uuid as AsExpression<<uuid as Expression>::SqlType>>::Expression>>, Option<Eq<image_list_name, <&'insert String as AsExpression<<image_list_name as Expression>::SqlType>>::Expression>>, Option<Eq<rating, <&'insert i32 as AsExpression<<rating as Expression>::SqlType>>::Expression>>, Option<Eq<publishing, <&'insert String as AsExpression<<publishing as Expression>::SqlType>>::Expression>>, Option<Eq<format_type, <&'insert String as AsExpression<<format_type as Expression>::SqlType>>::Expression>>, Option<Eq<realise_year, <&'insert i32 as AsExpression<<realise_year as Expression>::SqlType>>::Expression>>, Option<Eq<description, <&'insert String as AsExpression<<description as Expression>::SqlType>>::Expression>>, Option<Eq<image_resolution_x_min, <&'insert i32 as AsExpression<<image_resolution_x_min as Expression>::SqlType>>::Expression>>, Option<Eq<image_resolution_y_min, <&'insert i32 as AsExpression<<image_resolution_y_min as Expression>::SqlType>>::Expression>>, Option<Eq<image_resolution_x_max, <&'insert i32 as AsExpression<<image_resolution_x_max as Expression>::SqlType>>::Expression>>, Option<Eq<image_resolution_y_max, <&'insert i32 as AsExpression<<image_resolution_y_max as Expression>::SqlType>>::Expression>>, Option<Eq<updu, <&'insert Uuid as AsExpression<<updu as Expression>::SqlType>>::Expression>>, Option<Eq<updt, <&'insert NaiveDateTime as AsExpression<<updt as Expression>::SqlType>>::Expression>>, Option<Eq<ver, <&'insert i32 as AsExpression<<ver as Expression>::SqlType>>::Expression>>, Option<Eq<book_name, <&'insert String as AsExpression<<book_name as Expression>::SqlType>>::Expression>>, Option<Eq<book_isbn, <&'insert String as AsExpression<<book_isbn as Expression>::SqlType>>::Expression>>, Option<Eq<book_page_count, <&'insert String as AsExpression<<book_page_count as Expression>::SqlType>>::Expression>>, Option<Eq<audio_name, <&'insert String as AsExpression<<audio_name as Expression>::SqlType>>::Expression>>, Option<Eq<audio_bitrate, <&'insert f32 as AsExpression<<audio_bitrate as Expression>::SqlType>>::Expression>>, Option<Eq<audio_duration, <&'insert i32 as AsExpression<<audio_duration as Expression>::SqlType>>::Expression>>, Option<Eq<model_3d_name, <&'insert String as AsExpression<<model_3d_name as Expression>::SqlType>>::Expression>>, Option<Eq<video_name, <&'insert String as AsExpression<<video_name as Expression>::SqlType>>::Expression>>, Option<Eq<video_duration, <&'insert i32 as AsExpression<<video_duration as Expression>::SqlType>>::Expression>>, Option<Eq<video_resolution_x, <&'insert i32 as AsExpression<<video_resolution_x as Expression>::SqlType>>::Expression>>, Option<Eq<video_resolution_y, <&'insert i32 as AsExpression<<video_resolution_y as Expression>::SqlType>>::Expression>>, Option<Eq<video_fps, <&'insert f32 as AsExpression<<video_fps as Expression>::SqlType>>::Expression>>, Option<Eq<media_language_name, <&'insert String as AsExpression<<media_language_name as Expression>::SqlType>>::Expression>>, Option<Eq<keywords, <&'insert Vec<String> as AsExpression<<keywords as Expression>::SqlType>>::Expression>>, Option<Eq<age_category_types, <&'insert Vec<String> as AsExpression<<age_category_types as Expression>::SqlType>>::Expression>>, Option<Eq<authors, <&'insert Vec<Uuid> as AsExpression<<authors as Expression>::SqlType>>::Expression>>, Option<Eq<categories, <&'insert Vec<Uuid> as AsExpression<<categories as Expression>::SqlType>>::Expression>>, Option<Eq<favorites, <&'insert Vec<Uuid> as AsExpression<<favorites as Expression>::SqlType>>::Expression>>, Option<Eq<file, <&'insert String as AsExpression<<file as Expression>::SqlType>>::Expression>>, Option<Eq<organizations, <&'insert Vec<Uuid> as AsExpression<<organizations as Expression>::SqlType>>::Expression>>, Option<Eq<rstatus, <&'insert RStatus as AsExpression<<rstatus as Expression>::SqlType>>::Expression>>) as Insertable<table>>::Values
The
VALUES
clause to insert these records Read moreSource§fn insert_into(self, table: T) -> InsertStatement<T, Self::Values>where
Self: Sized,
fn insert_into(self, table: T) -> InsertStatement<T, Self::Values>where
Self: Sized,
Insert
self
into a given table. Read more§impl<'insert> Insertable<table> for Media
impl<'insert> Insertable<table> for Media
§type Values = <(Option<Eq<uuid, <Uuid as AsExpression<<uuid as Expression>::SqlType>>::Expression>>, Option<Eq<image_list_name, <String as AsExpression<<image_list_name as Expression>::SqlType>>::Expression>>, Option<Eq<rating, <i32 as AsExpression<<rating as Expression>::SqlType>>::Expression>>, Option<Eq<publishing, <String as AsExpression<<publishing as Expression>::SqlType>>::Expression>>, Option<Eq<format_type, <String as AsExpression<<format_type as Expression>::SqlType>>::Expression>>, Option<Eq<realise_year, <i32 as AsExpression<<realise_year as Expression>::SqlType>>::Expression>>, Option<Eq<description, <String as AsExpression<<description as Expression>::SqlType>>::Expression>>, Option<Eq<image_resolution_x_min, <i32 as AsExpression<<image_resolution_x_min as Expression>::SqlType>>::Expression>>, Option<Eq<image_resolution_y_min, <i32 as AsExpression<<image_resolution_y_min as Expression>::SqlType>>::Expression>>, Option<Eq<image_resolution_x_max, <i32 as AsExpression<<image_resolution_x_max as Expression>::SqlType>>::Expression>>, Option<Eq<image_resolution_y_max, <i32 as AsExpression<<image_resolution_y_max as Expression>::SqlType>>::Expression>>, Option<Eq<updu, <Uuid as AsExpression<<updu as Expression>::SqlType>>::Expression>>, Option<Eq<updt, <NaiveDateTime as AsExpression<<updt as Expression>::SqlType>>::Expression>>, Option<Eq<ver, <i32 as AsExpression<<ver as Expression>::SqlType>>::Expression>>, Option<Eq<book_name, <String as AsExpression<<book_name as Expression>::SqlType>>::Expression>>, Option<Eq<book_isbn, <String as AsExpression<<book_isbn as Expression>::SqlType>>::Expression>>, Option<Eq<book_page_count, <String as AsExpression<<book_page_count as Expression>::SqlType>>::Expression>>, Option<Eq<audio_name, <String as AsExpression<<audio_name as Expression>::SqlType>>::Expression>>, Option<Eq<audio_bitrate, <f32 as AsExpression<<audio_bitrate as Expression>::SqlType>>::Expression>>, Option<Eq<audio_duration, <i32 as AsExpression<<audio_duration as Expression>::SqlType>>::Expression>>, Option<Eq<model_3d_name, <String as AsExpression<<model_3d_name as Expression>::SqlType>>::Expression>>, Option<Eq<video_name, <String as AsExpression<<video_name as Expression>::SqlType>>::Expression>>, Option<Eq<video_duration, <i32 as AsExpression<<video_duration as Expression>::SqlType>>::Expression>>, Option<Eq<video_resolution_x, <i32 as AsExpression<<video_resolution_x as Expression>::SqlType>>::Expression>>, Option<Eq<video_resolution_y, <i32 as AsExpression<<video_resolution_y as Expression>::SqlType>>::Expression>>, Option<Eq<video_fps, <f32 as AsExpression<<video_fps as Expression>::SqlType>>::Expression>>, Option<Eq<media_language_name, <String as AsExpression<<media_language_name as Expression>::SqlType>>::Expression>>, Option<Eq<keywords, <Vec<String> as AsExpression<<keywords as Expression>::SqlType>>::Expression>>, Option<Eq<age_category_types, <Vec<String> as AsExpression<<age_category_types as Expression>::SqlType>>::Expression>>, Option<Eq<authors, <Vec<Uuid> as AsExpression<<authors as Expression>::SqlType>>::Expression>>, Option<Eq<categories, <Vec<Uuid> as AsExpression<<categories as Expression>::SqlType>>::Expression>>, Option<Eq<favorites, <Vec<Uuid> as AsExpression<<favorites as Expression>::SqlType>>::Expression>>, Option<Eq<file, <String as AsExpression<<file as Expression>::SqlType>>::Expression>>, Option<Eq<organizations, <Vec<Uuid> as AsExpression<<organizations as Expression>::SqlType>>::Expression>>, Option<Eq<rstatus, <RStatus as AsExpression<<rstatus as Expression>::SqlType>>::Expression>>) as Insertable<table>>::Values
type Values = <(Option<Eq<uuid, <Uuid as AsExpression<<uuid as Expression>::SqlType>>::Expression>>, Option<Eq<image_list_name, <String as AsExpression<<image_list_name as Expression>::SqlType>>::Expression>>, Option<Eq<rating, <i32 as AsExpression<<rating as Expression>::SqlType>>::Expression>>, Option<Eq<publishing, <String as AsExpression<<publishing as Expression>::SqlType>>::Expression>>, Option<Eq<format_type, <String as AsExpression<<format_type as Expression>::SqlType>>::Expression>>, Option<Eq<realise_year, <i32 as AsExpression<<realise_year as Expression>::SqlType>>::Expression>>, Option<Eq<description, <String as AsExpression<<description as Expression>::SqlType>>::Expression>>, Option<Eq<image_resolution_x_min, <i32 as AsExpression<<image_resolution_x_min as Expression>::SqlType>>::Expression>>, Option<Eq<image_resolution_y_min, <i32 as AsExpression<<image_resolution_y_min as Expression>::SqlType>>::Expression>>, Option<Eq<image_resolution_x_max, <i32 as AsExpression<<image_resolution_x_max as Expression>::SqlType>>::Expression>>, Option<Eq<image_resolution_y_max, <i32 as AsExpression<<image_resolution_y_max as Expression>::SqlType>>::Expression>>, Option<Eq<updu, <Uuid as AsExpression<<updu as Expression>::SqlType>>::Expression>>, Option<Eq<updt, <NaiveDateTime as AsExpression<<updt as Expression>::SqlType>>::Expression>>, Option<Eq<ver, <i32 as AsExpression<<ver as Expression>::SqlType>>::Expression>>, Option<Eq<book_name, <String as AsExpression<<book_name as Expression>::SqlType>>::Expression>>, Option<Eq<book_isbn, <String as AsExpression<<book_isbn as Expression>::SqlType>>::Expression>>, Option<Eq<book_page_count, <String as AsExpression<<book_page_count as Expression>::SqlType>>::Expression>>, Option<Eq<audio_name, <String as AsExpression<<audio_name as Expression>::SqlType>>::Expression>>, Option<Eq<audio_bitrate, <f32 as AsExpression<<audio_bitrate as Expression>::SqlType>>::Expression>>, Option<Eq<audio_duration, <i32 as AsExpression<<audio_duration as Expression>::SqlType>>::Expression>>, Option<Eq<model_3d_name, <String as AsExpression<<model_3d_name as Expression>::SqlType>>::Expression>>, Option<Eq<video_name, <String as AsExpression<<video_name as Expression>::SqlType>>::Expression>>, Option<Eq<video_duration, <i32 as AsExpression<<video_duration as Expression>::SqlType>>::Expression>>, Option<Eq<video_resolution_x, <i32 as AsExpression<<video_resolution_x as Expression>::SqlType>>::Expression>>, Option<Eq<video_resolution_y, <i32 as AsExpression<<video_resolution_y as Expression>::SqlType>>::Expression>>, Option<Eq<video_fps, <f32 as AsExpression<<video_fps as Expression>::SqlType>>::Expression>>, Option<Eq<media_language_name, <String as AsExpression<<media_language_name as Expression>::SqlType>>::Expression>>, Option<Eq<keywords, <Vec<String> as AsExpression<<keywords as Expression>::SqlType>>::Expression>>, Option<Eq<age_category_types, <Vec<String> as AsExpression<<age_category_types as Expression>::SqlType>>::Expression>>, Option<Eq<authors, <Vec<Uuid> as AsExpression<<authors as Expression>::SqlType>>::Expression>>, Option<Eq<categories, <Vec<Uuid> as AsExpression<<categories as Expression>::SqlType>>::Expression>>, Option<Eq<favorites, <Vec<Uuid> as AsExpression<<favorites as Expression>::SqlType>>::Expression>>, Option<Eq<file, <String as AsExpression<<file as Expression>::SqlType>>::Expression>>, Option<Eq<organizations, <Vec<Uuid> as AsExpression<<organizations as Expression>::SqlType>>::Expression>>, Option<Eq<rstatus, <RStatus as AsExpression<<rstatus as Expression>::SqlType>>::Expression>>) as Insertable<table>>::Values
The
VALUES
clause to insert these records Read moreSource§fn insert_into(self, table: T) -> InsertStatement<T, Self::Values>where
Self: Sized,
fn insert_into(self, table: T) -> InsertStatement<T, Self::Values>where
Self: Sized,
Insert
self
into a given table. Read more§impl IntoUpdateTarget for table
impl IntoUpdateTarget for table
§type WhereClause = <<table as AsQuery>::Query as IntoUpdateTarget>::WhereClause
type WhereClause = <<table as AsQuery>::Query as IntoUpdateTarget>::WhereClause
What is the
WHERE
clause of this target?§fn into_update_target(self) -> UpdateTarget<Self::Table, Self::WhereClause>
fn into_update_target(self) -> UpdateTarget<Self::Table, Self::WhereClause>
Decomposes
self
into the table and where clause.§impl QueryId for table
impl QueryId for table
§const HAS_STATIC_QUERY_ID: bool = true
const HAS_STATIC_QUERY_ID: bool = true
Can the SQL generated by
Self
be uniquely identified by its type? Read more§impl QuerySource for table
impl QuerySource for table
§type FromClause = Identifier<'static>
type FromClause = Identifier<'static>
The type returned by
from_clause
§type DefaultSelection = <table as Table>::AllColumns
type DefaultSelection = <table as Table>::AllColumns
The type returned by
default_selection
§fn from_clause(&self) -> Self::FromClause
fn from_clause(&self) -> Self::FromClause
The actual
FROM
clause of this type. This is typically only called in
QueryFragment
implementations.§fn default_selection(&self) -> Self::DefaultSelection
fn default_selection(&self) -> Self::DefaultSelection
The default select clause of this type, which should be used if no
select clause was explicitly specified. This should always be a tuple of
all the desired columns, not
star
§impl Table for table
impl Table for table
§type PrimaryKey = uuid
type PrimaryKey = uuid
The type returned by
primary_key
§type AllColumns = (uuid, image_list_name, rating, publishing, format_type, realise_year, description, image_resolution_x_min, image_resolution_y_min, image_resolution_x_max, image_resolution_y_max, updu, updt, ver, book_name, book_isbn, book_page_count, audio_name, audio_bitrate, audio_duration, model_3d_name, video_name, video_duration, video_resolution_x, video_resolution_y, video_fps, media_language_name, keywords, age_category_types, authors, categories, favorites, file, organizations, rstatus)
type AllColumns = (uuid, image_list_name, rating, publishing, format_type, realise_year, description, image_resolution_x_min, image_resolution_y_min, image_resolution_x_max, image_resolution_y_max, updu, updt, ver, book_name, book_isbn, book_page_count, audio_name, audio_bitrate, audio_duration, model_3d_name, video_name, video_duration, video_resolution_x, video_resolution_y, video_fps, media_language_name, keywords, age_category_types, authors, categories, favorites, file, organizations, rstatus)
The type returned by
all_columns
§fn primary_key(&self) -> Self::PrimaryKey
fn primary_key(&self) -> Self::PrimaryKey
Returns the primary key of this table. Read more
§fn all_columns() -> Self::AllColumns
fn all_columns() -> Self::AllColumns
Returns a tuple of all columns belonging to this table.
impl AppearsOnTable<table> for star
impl Copy for table
impl<'a, QS, ST, DB> JoinTo<BoxedSelectStatement<'a, QS, ST, DB>> for table
impl<Left, Right, Kind> JoinTo<Join<Left, Right, Kind>> for table
impl SelectableExpression<table> for age_category_types
impl SelectableExpression<table> for audio_bitrate
impl SelectableExpression<table> for audio_duration
impl SelectableExpression<table> for audio_name
impl SelectableExpression<table> for book_isbn
impl SelectableExpression<table> for book_name
impl SelectableExpression<table> for book_page_count
impl SelectableExpression<table> for categories
impl SelectableExpression<table> for description
impl SelectableExpression<table> for favorites
impl SelectableExpression<table> for file
impl SelectableExpression<table> for format_type
impl SelectableExpression<table> for image_list_name
impl SelectableExpression<table> for image_resolution_x_max
impl SelectableExpression<table> for image_resolution_x_min
impl SelectableExpression<table> for image_resolution_y_max
impl SelectableExpression<table> for image_resolution_y_min
impl SelectableExpression<table> for keywords
impl SelectableExpression<table> for media_language_name
impl SelectableExpression<table> for model_3d_name
impl SelectableExpression<table> for organizations
impl SelectableExpression<table> for publishing
impl SelectableExpression<table> for rating
impl SelectableExpression<table> for realise_year
impl SelectableExpression<table> for rstatus
impl SelectableExpression<table> for star
impl SelectableExpression<table> for updt
impl SelectableExpression<table> for updu
impl SelectableExpression<table> for uuid
impl SelectableExpression<table> for ver
impl SelectableExpression<table> for video_duration
impl SelectableExpression<table> for video_fps
impl SelectableExpression<table> for video_name
impl SelectableExpression<table> for video_resolution_x
impl SelectableExpression<table> for video_resolution_y
impl<'insert> UndecoratedInsertRecord<table> for Media
Auto Trait Implementations§
impl Freeze for table
impl RefUnwindSafe for table
impl Send for table
impl Sync for table
impl Unpin for table
impl UnwindSafe for table
Blanket Implementations§
Source§impl<Src, Scheme> ApproxFrom<Src, Scheme> for Srcwhere
Scheme: ApproxScheme,
impl<Src, Scheme> ApproxFrom<Src, Scheme> for Srcwhere
Scheme: ApproxScheme,
Source§fn approx_from(src: Src) -> Result<Src, <Src as ApproxFrom<Src, Scheme>>::Err>
fn approx_from(src: Src) -> Result<Src, <Src as ApproxFrom<Src, Scheme>>::Err>
Convert the given value into an approximately equivalent representation.
Source§impl<Dst, Src, Scheme> ApproxInto<Dst, Scheme> for Srcwhere
Dst: ApproxFrom<Src, Scheme>,
Scheme: ApproxScheme,
impl<Dst, Src, Scheme> ApproxInto<Dst, Scheme> for Srcwhere
Dst: ApproxFrom<Src, Scheme>,
Scheme: ApproxScheme,
Source§type Err = <Dst as ApproxFrom<Src, Scheme>>::Err
type Err = <Dst as ApproxFrom<Src, Scheme>>::Err
The error type produced by a failed conversion.
Source§fn approx_into(self) -> Result<Dst, <Src as ApproxInto<Dst, Scheme>>::Err>
fn approx_into(self) -> Result<Dst, <Src as ApproxInto<Dst, Scheme>>::Err>
Convert the subject into an approximately equivalent representation.
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T, Dst> ConvAsUtil<Dst> for T
impl<T, Dst> ConvAsUtil<Dst> for T
Source§impl<T> ConvUtil for T
impl<T> ConvUtil for T
Source§fn approx_as<Dst>(self) -> Result<Dst, Self::Err>where
Self: Sized + ApproxInto<Dst>,
fn approx_as<Dst>(self) -> Result<Dst, Self::Err>where
Self: Sized + ApproxInto<Dst>,
Approximate the subject to a given type with the default scheme.
Source§fn approx_as_by<Dst, Scheme>(self) -> Result<Dst, Self::Err>
fn approx_as_by<Dst, Scheme>(self) -> Result<Dst, Self::Err>
Approximate the subject to a given type with a specific scheme.
Source§impl<T> DistinctDsl for T
impl<T> DistinctDsl for T
Source§impl<T> ForUpdateDsl for Twhere
T: LockingDsl<ForUpdate>,
impl<T> ForUpdateDsl for Twhere
T: LockingDsl<ForUpdate>,
Source§type Output = <T as LockingDsl<ForUpdate>>::Output
type Output = <T as LockingDsl<ForUpdate>>::Output
👎Deprecated since 1.3.0: use
LockingDsl<ForUpdate>
insteadThe type returned by
for_update
. See dsl::ForUpdate
for
convenient access to this type.Source§fn for_update(self) -> <T as ForUpdateDsl>::Output
fn for_update(self) -> <T as ForUpdateDsl>::Output
👎Deprecated since 1.3.0: use
LockingDsl<ForUpdate>
insteadSee the trait level documentation
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoSql for T
impl<T> IntoSql for T
Source§fn into_sql<T>(self) -> Self::Expressionwhere
Self: Sized + AsExpression<T>,
fn into_sql<T>(self) -> Self::Expressionwhere
Self: Sized + AsExpression<T>,
Convert
self
to an expression for Diesel’s query builder. Read moreSource§fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expressionwhere
&'a Self: AsExpression<T>,
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expressionwhere
&'a Self: AsExpression<T>,
Convert
&self
to an expression for Diesel’s query builder. Read moreSource§impl<T> JoinOnDsl for Twhere
T: QuerySource,
impl<T> JoinOnDsl for Twhere
T: QuerySource,
Source§fn on<On>(self, on: On) -> OnClauseWrapper<Self, On>
fn on<On>(self, on: On) -> OnClauseWrapper<Self, On>
See the trait documentation.
Source§impl<Lhs, Rhs, On> JoinTo<OnClauseWrapper<Rhs, On>> for Lhswhere
Lhs: Table,
impl<Lhs, Rhs, On> JoinTo<OnClauseWrapper<Rhs, On>> for Lhswhere
Lhs: Table,
type FromClause = Rhs
type OnClause = On
fn join_target( rhs: OnClauseWrapper<Rhs, On>, ) -> (<Lhs as JoinTo<OnClauseWrapper<Rhs, On>>>::FromClause, <Lhs as JoinTo<OnClauseWrapper<Rhs, On>>>::OnClause)
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> QueryDsl for Twhere
T: Table,
impl<T> QueryDsl for Twhere
T: Table,
Source§fn distinct(self) -> Self::Outputwhere
Self: DistinctDsl,
fn distinct(self) -> Self::Outputwhere
Self: DistinctDsl,
Adds the
DISTINCT
keyword to a query. Read moreSource§fn distinct_on<Expr>(self, expr: Expr) -> Self::Outputwhere
Self: DistinctOnDsl<Expr>,
fn distinct_on<Expr>(self, expr: Expr) -> Self::Outputwhere
Self: DistinctOnDsl<Expr>,
Adds the
DISTINCT ON
clause to a query. Read moreSource§fn select<Selection>(self, selection: Selection) -> Self::Outputwhere
Selection: Expression,
Self: SelectDsl<Selection>,
fn select<Selection>(self, selection: Selection) -> Self::Outputwhere
Selection: Expression,
Self: SelectDsl<Selection>,
Adds a
SELECT
clause to the query. Read moreSource§fn count(self) -> Self::Output
fn count(self) -> Self::Output
Get the count of a query. This is equivalent to
.select(count_star())
Read moreSource§fn inner_join<Rhs>(self, rhs: Rhs) -> Self::Outputwhere
Self: JoinWithImplicitOnClause<Rhs, Inner>,
fn inner_join<Rhs>(self, rhs: Rhs) -> Self::Outputwhere
Self: JoinWithImplicitOnClause<Rhs, Inner>,
Join two tables using a SQL
INNER JOIN
. Read moreSource§fn left_outer_join<Rhs>(self, rhs: Rhs) -> Self::Outputwhere
Self: JoinWithImplicitOnClause<Rhs, LeftOuter>,
fn left_outer_join<Rhs>(self, rhs: Rhs) -> Self::Outputwhere
Self: JoinWithImplicitOnClause<Rhs, LeftOuter>,
Join two tables using a SQL
LEFT OUTER JOIN
. Read moreSource§fn left_join<Rhs>(self, rhs: Rhs) -> Self::Outputwhere
Self: JoinWithImplicitOnClause<Rhs, LeftOuter>,
fn left_join<Rhs>(self, rhs: Rhs) -> Self::Outputwhere
Self: JoinWithImplicitOnClause<Rhs, LeftOuter>,
Alias for
left_outer_join
.Source§fn filter<Predicate>(self, predicate: Predicate) -> Self::Outputwhere
Self: FilterDsl<Predicate>,
fn filter<Predicate>(self, predicate: Predicate) -> Self::Outputwhere
Self: FilterDsl<Predicate>,
Adds to the
WHERE
clause of a query. Read moreSource§fn or_filter<Predicate>(self, predicate: Predicate) -> Self::Outputwhere
Self: OrFilterDsl<Predicate>,
fn or_filter<Predicate>(self, predicate: Predicate) -> Self::Outputwhere
Self: OrFilterDsl<Predicate>,
Source§fn find<PK>(self, id: PK) -> Self::Outputwhere
Self: FindDsl<PK>,
fn find<PK>(self, id: PK) -> Self::Outputwhere
Self: FindDsl<PK>,
Attempts to find a single record from the given table by primary key. Read more
Source§fn order<Expr>(self, expr: Expr) -> Self::Outputwhere
Expr: Expression,
Self: OrderDsl<Expr>,
fn order<Expr>(self, expr: Expr) -> Self::Outputwhere
Expr: Expression,
Self: OrderDsl<Expr>,
Sets the order clause of a query. Read more
Source§fn order_by<Expr>(self, expr: Expr) -> Self::Outputwhere
Expr: Expression,
Self: OrderDsl<Expr>,
fn order_by<Expr>(self, expr: Expr) -> Self::Outputwhere
Expr: Expression,
Self: OrderDsl<Expr>,
Alias for
order
Source§fn then_order_by<Order>(self, order: Order) -> Self::Outputwhere
Self: ThenOrderDsl<Order>,
fn then_order_by<Order>(self, order: Order) -> Self::Outputwhere
Self: ThenOrderDsl<Order>,
Appends to the
ORDER BY
clause of this SQL query. Read moreSource§fn limit(self, limit: i64) -> Self::Outputwhere
Self: LimitDsl,
fn limit(self, limit: i64) -> Self::Outputwhere
Self: LimitDsl,
Sets the limit clause of the query. Read more
Source§fn offset(self, offset: i64) -> Self::Outputwhere
Self: OffsetDsl,
fn offset(self, offset: i64) -> Self::Outputwhere
Self: OffsetDsl,
Sets the offset clause of the query. Read more
Source§fn for_update(self) -> Self::Outputwhere
Self: ForUpdateDsl,
fn for_update(self) -> Self::Outputwhere
Self: ForUpdateDsl,
Adds
FOR UPDATE
to the end of the select statement. Read moreSource§fn for_no_key_update(self) -> Self::Outputwhere
Self: LockingDsl<ForNoKeyUpdate>,
fn for_no_key_update(self) -> Self::Outputwhere
Self: LockingDsl<ForNoKeyUpdate>,
Adds
FOR NO KEY UPDATE
to the end of the select statement. Read moreAdds
FOR SHARE
to the end of the select statement. Read moreAdds
FOR KEY SHARE
to the end of the select statement. Read moreSource§fn skip_locked(self) -> Self::Outputwhere
Self: ModifyLockDsl<SkipLocked>,
fn skip_locked(self) -> Self::Outputwhere
Self: ModifyLockDsl<SkipLocked>,
Source§fn into_boxed<'a, DB>(self) -> Self::Output
fn into_boxed<'a, DB>(self) -> Self::Output
Boxes the pieces of a query into a single type. Read more
Source§fn single_value(self) -> Self::Outputwhere
Self: SingleValueDsl,
fn single_value(self) -> Self::Outputwhere
Self: SingleValueDsl,
Wraps this select statement in parenthesis, allowing it to be used
as an expression. Read more
Source§impl<T, Conn> RunQueryDsl<Conn> for Twhere
T: Table,
impl<T, Conn> RunQueryDsl<Conn> for Twhere
T: Table,
Source§fn execute(self, conn: &Conn) -> Result<usize, Error>where
Conn: Connection,
Self: ExecuteDsl<Conn>,
fn execute(self, conn: &Conn) -> Result<usize, Error>where
Conn: Connection,
Self: ExecuteDsl<Conn>,
Executes the given command, returning the number of rows affected. Read more
Source§fn load<U>(self, conn: &Conn) -> Result<Vec<U>, Error>where
Self: LoadQuery<Conn, U>,
fn load<U>(self, conn: &Conn) -> Result<Vec<U>, Error>where
Self: LoadQuery<Conn, U>,
Executes the given query, returning a
Vec
with the returned rows. Read moreSource§fn get_result<U>(self, conn: &Conn) -> Result<U, Error>where
Self: LoadQuery<Conn, U>,
fn get_result<U>(self, conn: &Conn) -> Result<U, Error>where
Self: LoadQuery<Conn, U>,
Runs the command, and returns the affected row. Read more
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self
from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self
is actually part of its subset T
(and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset
but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.