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§
Source§impl AppearsInFromClause<table> for ()
impl AppearsInFromClause<table> for ()
Source§impl AppearsInFromClause<table> for table
impl AppearsInFromClause<table> for table
Source§impl AppearsInFromClause<table> for table
impl AppearsInFromClause<table> for table
Source§impl AppearsInFromClause<table> for table
impl AppearsInFromClause<table> for table
Source§impl AppearsInFromClause<table> for table
impl AppearsInFromClause<table> for table
Source§impl AppearsInFromClause<table> for table
impl AppearsInFromClause<table> for table
Source§impl AppearsInFromClause<table> for table
impl AppearsInFromClause<table> for table
Source§impl AppearsInFromClause<table> for table
impl AppearsInFromClause<table> for table
Source§impl AsQuery for table
impl AsQuery for table
Source§type SqlType = (Text, Nullable<Text>, Nullable<Text>, Nullable<Text>, Nullable<Bool>, Nullable<Bool>, Nullable<Bool>, Nullable<Jsonb>, Nullable<Text>, Nullable<Jsonb>, Nullable<Integer>, Nullable<Text>, Nullable<Text>, Nullable<Text>, Nullable<Text>, Nullable<Jsonb>, Nullable<Text>, Nullable<Jsonb>, Nullable<Bool>, Nullable<Bool>, Nullable<Bool>, Nullable<Bool>, Nullable<Bool>, Nullable<Text>, Nullable<Text>, Nullable<Text>, Nullable<Text>, Nullable<Text>, Nullable<BigInt>, Nullable<BigInt>, Nullable<Text>, Nullable<Jsonb>, Nullable<Jsonb>, Nullable<Bool>)
type SqlType = (Text, Nullable<Text>, Nullable<Text>, Nullable<Text>, Nullable<Bool>, Nullable<Bool>, Nullable<Bool>, Nullable<Jsonb>, Nullable<Text>, Nullable<Jsonb>, Nullable<Integer>, Nullable<Text>, Nullable<Text>, Nullable<Text>, Nullable<Text>, Nullable<Jsonb>, Nullable<Text>, Nullable<Jsonb>, Nullable<Bool>, Nullable<Bool>, Nullable<Bool>, Nullable<Bool>, Nullable<Bool>, Nullable<Text>, Nullable<Text>, Nullable<Text>, Nullable<Text>, Nullable<Text>, Nullable<BigInt>, Nullable<BigInt>, Nullable<Text>, Nullable<Jsonb>, Nullable<Jsonb>, Nullable<Bool>)
The SQL type of
Self::QuerySource§impl<'a, T> Insertable<T> for &'a tablewhere
table: Insertable<T>,
impl<'a, T> Insertable<T> for &'a tablewhere
table: Insertable<T>,
Source§type Values = <table as Insertable<T>>::Values
type Values = <table 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 moreSource§impl<T> Insertable<T> for table
impl<T> Insertable<T> for table
Source§impl<'insert> Insertable<table> for &'insert File
impl<'insert> Insertable<table> for &'insert File
Source§type Values = <(Option<Eq<id, <&'insert String as AsExpression<<id as Expression>::SqlType>>::Expression>>, Option<Eq<name, <&'insert String as AsExpression<<name as Expression>::SqlType>>::Expression>>, Option<Eq<mime_type, <&'insert String as AsExpression<<mime_type as Expression>::SqlType>>::Expression>>, Option<Eq<description, <&'insert String as AsExpression<<description as Expression>::SqlType>>::Expression>>, Option<Eq<trashed, <&'insert bool as AsExpression<<trashed as Expression>::SqlType>>::Expression>>, Option<Eq<starred, <&'insert bool as AsExpression<<starred as Expression>::SqlType>>::Expression>>, Option<Eq<explicitly_trashed, <&'insert bool as AsExpression<<explicitly_trashed as Expression>::SqlType>>::Expression>>, Option<Eq<trashing_user, <&'insert Value as AsExpression<<trashing_user as Expression>::SqlType>>::Expression>>, Option<Eq<trashed_time, <&'insert String as AsExpression<<trashed_time as Expression>::SqlType>>::Expression>>, Option<Eq<properties, <&'insert Value as AsExpression<<properties as Expression>::SqlType>>::Expression>>, Option<Eq<web_content_link, <&'insert String as AsExpression<<web_content_link as Expression>::SqlType>>::Expression>>, Option<Eq<web_view_link, <&'insert String as AsExpression<<web_view_link as Expression>::SqlType>>::Expression>>, Option<Eq<created_time, <&'insert String as AsExpression<<created_time as Expression>::SqlType>>::Expression>>, Option<Eq<modified_time, <&'insert String as AsExpression<<modified_time as Expression>::SqlType>>::Expression>>, Option<Eq<owners, <&'insert Value as AsExpression<<owners as Expression>::SqlType>>::Expression>>, Option<Eq<drive_id, <&'insert String as AsExpression<<drive_id as Expression>::SqlType>>::Expression>>, Option<Eq<last_modifying_user, <&'insert Value as AsExpression<<last_modifying_user as Expression>::SqlType>>::Expression>>, Option<Eq<shared, <&'insert bool as AsExpression<<shared as Expression>::SqlType>>::Expression>>, Option<Eq<viewers_can_copy_content, <&'insert bool as AsExpression<<viewers_can_copy_content as Expression>::SqlType>>::Expression>>, Option<Eq<copy_requires_writer_permission, <&'insert bool as AsExpression<<copy_requires_writer_permission as Expression>::SqlType>>::Expression>>, Option<Eq<writers_can_share, <&'insert bool as AsExpression<<writers_can_share as Expression>::SqlType>>::Expression>>, Option<Eq<has_augmented_permissions, <&'insert bool as AsExpression<<has_augmented_permissions as Expression>::SqlType>>::Expression>>, Option<Eq<folder_color_rgb, <&'insert String as AsExpression<<folder_color_rgb as Expression>::SqlType>>::Expression>>, Option<Eq<original_filename, <&'insert String as AsExpression<<original_filename as Expression>::SqlType>>::Expression>>, Option<Eq<full_file_extension, <&'insert String as AsExpression<<full_file_extension as Expression>::SqlType>>::Expression>>, Option<Eq<file_extension, <&'insert String as AsExpression<<file_extension as Expression>::SqlType>>::Expression>>, Option<Eq<md5_checksum, <&'insert String as AsExpression<<md5_checksum as Expression>::SqlType>>::Expression>>, Option<Eq<head_revision_id, <&'insert String as AsExpression<<head_revision_id as Expression>::SqlType>>::Expression>>, Option<Eq<image_media_metadata, <&'insert Value as AsExpression<<image_media_metadata as Expression>::SqlType>>::Expression>>, Option<Eq<video_media_metadata, <&'insert Value as AsExpression<<video_media_metadata as Expression>::SqlType>>::Expression>>, Option<Eq<is_app_authorized, <&'insert bool as AsExpression<<is_app_authorized as Expression>::SqlType>>::Expression>>) as Insertable<table>>::Values
type Values = <(Option<Eq<id, <&'insert String as AsExpression<<id as Expression>::SqlType>>::Expression>>, Option<Eq<name, <&'insert String as AsExpression<<name as Expression>::SqlType>>::Expression>>, Option<Eq<mime_type, <&'insert String as AsExpression<<mime_type as Expression>::SqlType>>::Expression>>, Option<Eq<description, <&'insert String as AsExpression<<description as Expression>::SqlType>>::Expression>>, Option<Eq<trashed, <&'insert bool as AsExpression<<trashed as Expression>::SqlType>>::Expression>>, Option<Eq<starred, <&'insert bool as AsExpression<<starred as Expression>::SqlType>>::Expression>>, Option<Eq<explicitly_trashed, <&'insert bool as AsExpression<<explicitly_trashed as Expression>::SqlType>>::Expression>>, Option<Eq<trashing_user, <&'insert Value as AsExpression<<trashing_user as Expression>::SqlType>>::Expression>>, Option<Eq<trashed_time, <&'insert String as AsExpression<<trashed_time as Expression>::SqlType>>::Expression>>, Option<Eq<properties, <&'insert Value as AsExpression<<properties as Expression>::SqlType>>::Expression>>, Option<Eq<web_content_link, <&'insert String as AsExpression<<web_content_link as Expression>::SqlType>>::Expression>>, Option<Eq<web_view_link, <&'insert String as AsExpression<<web_view_link as Expression>::SqlType>>::Expression>>, Option<Eq<created_time, <&'insert String as AsExpression<<created_time as Expression>::SqlType>>::Expression>>, Option<Eq<modified_time, <&'insert String as AsExpression<<modified_time as Expression>::SqlType>>::Expression>>, Option<Eq<owners, <&'insert Value as AsExpression<<owners as Expression>::SqlType>>::Expression>>, Option<Eq<drive_id, <&'insert String as AsExpression<<drive_id as Expression>::SqlType>>::Expression>>, Option<Eq<last_modifying_user, <&'insert Value as AsExpression<<last_modifying_user as Expression>::SqlType>>::Expression>>, Option<Eq<shared, <&'insert bool as AsExpression<<shared as Expression>::SqlType>>::Expression>>, Option<Eq<viewers_can_copy_content, <&'insert bool as AsExpression<<viewers_can_copy_content as Expression>::SqlType>>::Expression>>, Option<Eq<copy_requires_writer_permission, <&'insert bool as AsExpression<<copy_requires_writer_permission as Expression>::SqlType>>::Expression>>, Option<Eq<writers_can_share, <&'insert bool as AsExpression<<writers_can_share as Expression>::SqlType>>::Expression>>, Option<Eq<has_augmented_permissions, <&'insert bool as AsExpression<<has_augmented_permissions as Expression>::SqlType>>::Expression>>, Option<Eq<folder_color_rgb, <&'insert String as AsExpression<<folder_color_rgb as Expression>::SqlType>>::Expression>>, Option<Eq<original_filename, <&'insert String as AsExpression<<original_filename as Expression>::SqlType>>::Expression>>, Option<Eq<full_file_extension, <&'insert String as AsExpression<<full_file_extension as Expression>::SqlType>>::Expression>>, Option<Eq<file_extension, <&'insert String as AsExpression<<file_extension as Expression>::SqlType>>::Expression>>, Option<Eq<md5_checksum, <&'insert String as AsExpression<<md5_checksum as Expression>::SqlType>>::Expression>>, Option<Eq<head_revision_id, <&'insert String as AsExpression<<head_revision_id as Expression>::SqlType>>::Expression>>, Option<Eq<image_media_metadata, <&'insert Value as AsExpression<<image_media_metadata as Expression>::SqlType>>::Expression>>, Option<Eq<video_media_metadata, <&'insert Value as AsExpression<<video_media_metadata as Expression>::SqlType>>::Expression>>, Option<Eq<is_app_authorized, <&'insert bool as AsExpression<<is_app_authorized 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 moreSource§impl<'insert> Insertable<table> for File
impl<'insert> Insertable<table> for File
Source§type Values = <(Option<Eq<id, <String as AsExpression<<id as Expression>::SqlType>>::Expression>>, Option<Eq<name, <String as AsExpression<<name as Expression>::SqlType>>::Expression>>, Option<Eq<mime_type, <String as AsExpression<<mime_type as Expression>::SqlType>>::Expression>>, Option<Eq<description, <String as AsExpression<<description as Expression>::SqlType>>::Expression>>, Option<Eq<trashed, <bool as AsExpression<<trashed as Expression>::SqlType>>::Expression>>, Option<Eq<starred, <bool as AsExpression<<starred as Expression>::SqlType>>::Expression>>, Option<Eq<explicitly_trashed, <bool as AsExpression<<explicitly_trashed as Expression>::SqlType>>::Expression>>, Option<Eq<trashing_user, <Value as AsExpression<<trashing_user as Expression>::SqlType>>::Expression>>, Option<Eq<trashed_time, <String as AsExpression<<trashed_time as Expression>::SqlType>>::Expression>>, Option<Eq<properties, <Value as AsExpression<<properties as Expression>::SqlType>>::Expression>>, Option<Eq<web_content_link, <String as AsExpression<<web_content_link as Expression>::SqlType>>::Expression>>, Option<Eq<web_view_link, <String as AsExpression<<web_view_link as Expression>::SqlType>>::Expression>>, Option<Eq<created_time, <String as AsExpression<<created_time as Expression>::SqlType>>::Expression>>, Option<Eq<modified_time, <String as AsExpression<<modified_time as Expression>::SqlType>>::Expression>>, Option<Eq<owners, <Value as AsExpression<<owners as Expression>::SqlType>>::Expression>>, Option<Eq<drive_id, <String as AsExpression<<drive_id as Expression>::SqlType>>::Expression>>, Option<Eq<last_modifying_user, <Value as AsExpression<<last_modifying_user as Expression>::SqlType>>::Expression>>, Option<Eq<shared, <bool as AsExpression<<shared as Expression>::SqlType>>::Expression>>, Option<Eq<viewers_can_copy_content, <bool as AsExpression<<viewers_can_copy_content as Expression>::SqlType>>::Expression>>, Option<Eq<copy_requires_writer_permission, <bool as AsExpression<<copy_requires_writer_permission as Expression>::SqlType>>::Expression>>, Option<Eq<writers_can_share, <bool as AsExpression<<writers_can_share as Expression>::SqlType>>::Expression>>, Option<Eq<has_augmented_permissions, <bool as AsExpression<<has_augmented_permissions as Expression>::SqlType>>::Expression>>, Option<Eq<folder_color_rgb, <String as AsExpression<<folder_color_rgb as Expression>::SqlType>>::Expression>>, Option<Eq<original_filename, <String as AsExpression<<original_filename as Expression>::SqlType>>::Expression>>, Option<Eq<full_file_extension, <String as AsExpression<<full_file_extension as Expression>::SqlType>>::Expression>>, Option<Eq<file_extension, <String as AsExpression<<file_extension as Expression>::SqlType>>::Expression>>, Option<Eq<md5_checksum, <String as AsExpression<<md5_checksum as Expression>::SqlType>>::Expression>>, Option<Eq<head_revision_id, <String as AsExpression<<head_revision_id as Expression>::SqlType>>::Expression>>, Option<Eq<image_media_metadata, <Value as AsExpression<<image_media_metadata as Expression>::SqlType>>::Expression>>, Option<Eq<video_media_metadata, <Value as AsExpression<<video_media_metadata as Expression>::SqlType>>::Expression>>, Option<Eq<is_app_authorized, <bool as AsExpression<<is_app_authorized as Expression>::SqlType>>::Expression>>) as Insertable<table>>::Values
type Values = <(Option<Eq<id, <String as AsExpression<<id as Expression>::SqlType>>::Expression>>, Option<Eq<name, <String as AsExpression<<name as Expression>::SqlType>>::Expression>>, Option<Eq<mime_type, <String as AsExpression<<mime_type as Expression>::SqlType>>::Expression>>, Option<Eq<description, <String as AsExpression<<description as Expression>::SqlType>>::Expression>>, Option<Eq<trashed, <bool as AsExpression<<trashed as Expression>::SqlType>>::Expression>>, Option<Eq<starred, <bool as AsExpression<<starred as Expression>::SqlType>>::Expression>>, Option<Eq<explicitly_trashed, <bool as AsExpression<<explicitly_trashed as Expression>::SqlType>>::Expression>>, Option<Eq<trashing_user, <Value as AsExpression<<trashing_user as Expression>::SqlType>>::Expression>>, Option<Eq<trashed_time, <String as AsExpression<<trashed_time as Expression>::SqlType>>::Expression>>, Option<Eq<properties, <Value as AsExpression<<properties as Expression>::SqlType>>::Expression>>, Option<Eq<web_content_link, <String as AsExpression<<web_content_link as Expression>::SqlType>>::Expression>>, Option<Eq<web_view_link, <String as AsExpression<<web_view_link as Expression>::SqlType>>::Expression>>, Option<Eq<created_time, <String as AsExpression<<created_time as Expression>::SqlType>>::Expression>>, Option<Eq<modified_time, <String as AsExpression<<modified_time as Expression>::SqlType>>::Expression>>, Option<Eq<owners, <Value as AsExpression<<owners as Expression>::SqlType>>::Expression>>, Option<Eq<drive_id, <String as AsExpression<<drive_id as Expression>::SqlType>>::Expression>>, Option<Eq<last_modifying_user, <Value as AsExpression<<last_modifying_user as Expression>::SqlType>>::Expression>>, Option<Eq<shared, <bool as AsExpression<<shared as Expression>::SqlType>>::Expression>>, Option<Eq<viewers_can_copy_content, <bool as AsExpression<<viewers_can_copy_content as Expression>::SqlType>>::Expression>>, Option<Eq<copy_requires_writer_permission, <bool as AsExpression<<copy_requires_writer_permission as Expression>::SqlType>>::Expression>>, Option<Eq<writers_can_share, <bool as AsExpression<<writers_can_share as Expression>::SqlType>>::Expression>>, Option<Eq<has_augmented_permissions, <bool as AsExpression<<has_augmented_permissions as Expression>::SqlType>>::Expression>>, Option<Eq<folder_color_rgb, <String as AsExpression<<folder_color_rgb as Expression>::SqlType>>::Expression>>, Option<Eq<original_filename, <String as AsExpression<<original_filename as Expression>::SqlType>>::Expression>>, Option<Eq<full_file_extension, <String as AsExpression<<full_file_extension as Expression>::SqlType>>::Expression>>, Option<Eq<file_extension, <String as AsExpression<<file_extension as Expression>::SqlType>>::Expression>>, Option<Eq<md5_checksum, <String as AsExpression<<md5_checksum as Expression>::SqlType>>::Expression>>, Option<Eq<head_revision_id, <String as AsExpression<<head_revision_id as Expression>::SqlType>>::Expression>>, Option<Eq<image_media_metadata, <Value as AsExpression<<image_media_metadata as Expression>::SqlType>>::Expression>>, Option<Eq<video_media_metadata, <Value as AsExpression<<video_media_metadata as Expression>::SqlType>>::Expression>>, Option<Eq<is_app_authorized, <bool as AsExpression<<is_app_authorized 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 moreSource§impl IntoUpdateTarget for table
impl IntoUpdateTarget for table
Source§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?Source§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.Source§impl QueryId for table
impl QueryId for table
Source§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 moreSource§impl QuerySource for table
impl QuerySource for table
Source§type FromClause = Identifier<'static>
type FromClause = Identifier<'static>
The type returned by
from_clauseSource§type DefaultSelection = <table as Table>::AllColumns
type DefaultSelection = <table as Table>::AllColumns
The type returned by
default_selectionSource§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.Source§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
starSource§impl Table for table
impl Table for table
Source§type PrimaryKey = id
type PrimaryKey = id
The type returned by
primary_keySource§type AllColumns = (id, name, mime_type, description, trashed, starred, explicitly_trashed, trashing_user, trashed_time, properties, version, web_content_link, web_view_link, created_time, modified_time, owners, drive_id, last_modifying_user, shared, viewers_can_copy_content, copy_requires_writer_permission, writers_can_share, has_augmented_permissions, folder_color_rgb, original_filename, full_file_extension, file_extension, md5_checksum, size, quota_bytes_used, head_revision_id, image_media_metadata, video_media_metadata, is_app_authorized)
type AllColumns = (id, name, mime_type, description, trashed, starred, explicitly_trashed, trashing_user, trashed_time, properties, version, web_content_link, web_view_link, created_time, modified_time, owners, drive_id, last_modifying_user, shared, viewers_can_copy_content, copy_requires_writer_permission, writers_can_share, has_augmented_permissions, folder_color_rgb, original_filename, full_file_extension, file_extension, md5_checksum, size, quota_bytes_used, head_revision_id, image_media_metadata, video_media_metadata, is_app_authorized)
The type returned by
all_columnsSource§fn primary_key(&self) -> Self::PrimaryKey
fn primary_key(&self) -> Self::PrimaryKey
Returns the primary key of this table. Read more
Source§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 JoinTo<table> for table
impl JoinTo<table> for table
impl JoinTo<table> for table
impl JoinTo<table> for table
impl JoinTo<table> for table
impl JoinTo<table> for table
impl SelectableExpression<table> for copy_requires_writer_permission
impl SelectableExpression<table> for created_time
impl SelectableExpression<table> for description
impl SelectableExpression<table> for drive_id
impl SelectableExpression<table> for explicitly_trashed
impl SelectableExpression<table> for file_extension
impl SelectableExpression<table> for folder_color_rgb
impl SelectableExpression<table> for full_file_extension
impl SelectableExpression<table> for has_augmented_permissions
impl SelectableExpression<table> for head_revision_id
impl SelectableExpression<table> for id
impl SelectableExpression<table> for image_media_metadata
impl SelectableExpression<table> for last_modifying_user
impl SelectableExpression<table> for md5_checksum
impl SelectableExpression<table> for mime_type
impl SelectableExpression<table> for modified_time
impl SelectableExpression<table> for name
impl SelectableExpression<table> for original_filename
impl SelectableExpression<table> for owners
impl SelectableExpression<table> for properties
impl SelectableExpression<table> for quota_bytes_used
impl SelectableExpression<table> for size
impl SelectableExpression<table> for star
impl SelectableExpression<table> for starred
impl SelectableExpression<table> for trashed
impl SelectableExpression<table> for trashed_time
impl SelectableExpression<table> for trashing_user
impl SelectableExpression<table> for version
impl SelectableExpression<table> for video_media_metadata
impl SelectableExpression<table> for viewers_can_copy_content
impl SelectableExpression<table> for web_content_link
impl SelectableExpression<table> for web_view_link
impl<'insert> UndecoratedInsertRecord<table> for File
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<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> 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> 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§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> 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::Outputwhere
Self: SelectDsl<CountStar>,
fn count(self) -> Self::Outputwhere
Self: SelectDsl<CountStar>,
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
orderSource§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 no_wait(self) -> Self::Outputwhere
Self: ModifyLockDsl<NoWait>,
fn no_wait(self) -> Self::Outputwhere
Self: ModifyLockDsl<NoWait>,
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