From d3126f8e2e17de72acbf8f0028c2f4d8687bc5a1 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Tue, 10 Dec 2024 18:49:24 +0100 Subject: [PATCH] Remove accidentaly committed file --- expansion.rs | 13786 ------------------------------------------------- 1 file changed, 13786 deletions(-) delete mode 100644 expansion.rs diff --git a/expansion.rs b/expansion.rs deleted file mode 100644 index bba9caa..0000000 --- a/expansion.rs +++ /dev/null @@ -1,13786 +0,0 @@ -#![feature(prelude_import)] -//! Database schema, migrations, and high level database-reliant structures for the [`acrate`] project. -#[prelude_import] -use std::prelude::rust_2021::*; -#[macro_use] -extern crate std; -/// Database schema information automatically generated by [`diesel`]. -/// -/// Configured by `diesel.toml`. -mod schema { - #[allow(unused_imports, dead_code, unreachable_pub, unused_qualifications)] - pub mod meta_aliases { - use ::diesel; - pub use self::columns::*; - use diesel::sql_types::*; - /// Re-exports all of the columns of this table, as well as the - /// table struct renamed to the module name. This is meant to be - /// glob imported for functions which only deal with one table. - pub mod dsl { - pub use super::columns::id; - pub use super::columns::document; - pub use super::columns::pattern; - pub use super::columns::alias; - pub use super::table as meta_aliases; - } - #[allow(non_upper_case_globals, dead_code)] - /// A tuple of all of the columns on this table - pub const all_columns: (id, document, pattern, alias) = ( - id, - document, - pattern, - alias, - ); - #[allow(non_camel_case_types)] - /// The actual table struct - /// - /// This is the type which provides the base methods of the query - /// builder, such as `.select` and `.filter`. - pub struct table; - #[automatically_derived] - #[allow(non_camel_case_types)] - impl ::core::fmt::Debug for table { - #[inline] - fn fmt(&self, f: &mut ::core::fmt::Formatter) -> ::core::fmt::Result { - ::core::fmt::Formatter::write_str(f, "table") - } - } - #[automatically_derived] - #[allow(non_camel_case_types)] - impl ::core::clone::Clone for table { - #[inline] - fn clone(&self) -> table { - *self - } - } - #[automatically_derived] - #[allow(non_camel_case_types)] - impl ::core::marker::Copy for table {} - #[allow(unused_imports)] - const _: () = { - use diesel; - use diesel::query_builder::QueryId; - #[allow(non_camel_case_types)] - impl QueryId for table { - type QueryId = table; - const HAS_STATIC_QUERY_ID: bool = true; - } - }; - #[automatically_derived] - #[allow(non_camel_case_types)] - impl ::core::default::Default for table { - #[inline] - fn default() -> table { - table {} - } - } - impl table { - #[allow(dead_code)] - /// Represents `table_name.*`, which is sometimes necessary - /// for efficient count queries. It cannot be used in place of - /// `all_columns` - pub fn star(&self) -> star { - star - } - } - /// The SQL type of all of the columns on this table - pub type SqlType = (Uuid, Bpchar, Bpchar, Bpchar); - /// Helper type for representing a boxed query from this table - pub type BoxedQuery<'a, DB, ST = SqlType> = diesel::internal::table_macro::BoxedSelectStatement< - 'a, - ST, - diesel::internal::table_macro::FromClause, - DB, - >; - impl diesel::QuerySource for table { - type FromClause = diesel::internal::table_macro::StaticQueryFragmentInstance< - table, - >; - type DefaultSelection = ::AllColumns; - fn from_clause(&self) -> Self::FromClause { - diesel::internal::table_macro::StaticQueryFragmentInstance::new() - } - fn default_selection(&self) -> Self::DefaultSelection { - use diesel::Table; - Self::all_columns() - } - } - impl diesel::query_builder::QueryFragment for table - where - DB: diesel::backend::Backend, -
::Component: diesel::query_builder::QueryFragment< - DB, - >, - { - fn walk_ast<'b>( - &'b self, - __diesel_internal_pass: diesel::query_builder::AstPass<'_, 'b, DB>, - ) -> diesel::result::QueryResult<()> { -
::STATIC_COMPONENT - .walk_ast(__diesel_internal_pass) - } - } - impl diesel::internal::table_macro::StaticQueryFragment for table { - type Component = diesel::internal::table_macro::Identifier<'static>; - const STATIC_COMPONENT: &'static Self::Component = &diesel::internal::table_macro::Identifier( - "meta_aliases", - ); - } - impl diesel::query_builder::AsQuery for table { - type SqlType = SqlType; - type Query = diesel::internal::table_macro::SelectStatement< - diesel::internal::table_macro::FromClause, - >; - fn as_query(self) -> Self::Query { - diesel::internal::table_macro::SelectStatement::simple(self) - } - } - impl diesel::Table for table { - type PrimaryKey = id; - type AllColumns = (id, document, pattern, alias); - fn primary_key(&self) -> Self::PrimaryKey { - id - } - fn all_columns() -> Self::AllColumns { - (id, document, pattern, alias) - } - } - impl diesel::associations::HasTable for table { - type Table = Self; - fn table() -> Self::Table { - table - } - } - impl diesel::query_builder::IntoUpdateTarget for table { - type WhereClause = <::Query as diesel::query_builder::IntoUpdateTarget>::WhereClause; - fn into_update_target( - self, - ) -> diesel::query_builder::UpdateTarget { - use diesel::query_builder::AsQuery; - let q: diesel::internal::table_macro::SelectStatement< - diesel::internal::table_macro::FromClause
, - > = self.as_query(); - q.into_update_target() - } - } - impl diesel::query_source::AppearsInFromClause
for table { - type Count = diesel::query_source::Once; - } - impl diesel::internal::table_macro::AliasAppearsInFromClause - for table - where - S: diesel::query_source::AliasSource, - { - type Count = diesel::query_source::Never; - } - impl< - S1, - S2, - > diesel::internal::table_macro::AliasAliasAppearsInFromClause - for table - where - S1: diesel::query_source::AliasSource, - S2: diesel::query_source::AliasSource, - S1: diesel::internal::table_macro::AliasAliasAppearsInFromClauseSameTable< - S2, - table, - >, - { - type Count = >::Count; - } - impl diesel::query_source::AppearsInFromClause> - for table - where - S: diesel::query_source::AliasSource, - { - type Count = diesel::query_source::Never; - } - impl< - S, - C, - > diesel::internal::table_macro::FieldAliasMapperAssociatedTypesDisjointnessTrick< - table, - S, - C, - > for table - where - S: diesel::query_source::AliasSource + ::std::clone::Clone, - C: diesel::query_source::Column
, - { - type Out = diesel::query_source::AliasedField; - fn map( - __diesel_internal_column: C, - __diesel_internal_alias: &diesel::query_source::Alias, - ) -> Self::Out { - __diesel_internal_alias.field(__diesel_internal_column) - } - } - impl diesel::query_source::AppearsInFromClause
- for diesel::internal::table_macro::NoFromClause { - type Count = diesel::query_source::Never; - } - impl< - Left, - Right, - Kind, - > diesel::JoinTo> - for table - where - diesel::internal::table_macro::Join< - Left, - Right, - Kind, - >: diesel::JoinTo
, - Left: diesel::query_source::QuerySource, - Right: diesel::query_source::QuerySource, - { - type FromClause = diesel::internal::table_macro::Join; - type OnClause = as diesel::JoinTo
>::OnClause; - fn join_target( - __diesel_internal_rhs: diesel::internal::table_macro::Join< - Left, - Right, - Kind, - >, - ) -> (Self::FromClause, Self::OnClause) { - let (_, __diesel_internal_on_clause) = diesel::internal::table_macro::Join::join_target( - table, - ); - (__diesel_internal_rhs, __diesel_internal_on_clause) - } - } - impl diesel::JoinTo> - for table - where - diesel::internal::table_macro::JoinOn: diesel::JoinTo
, - { - type FromClause = diesel::internal::table_macro::JoinOn; - type OnClause = as diesel::JoinTo
>::OnClause; - fn join_target( - __diesel_internal_rhs: diesel::internal::table_macro::JoinOn, - ) -> (Self::FromClause, Self::OnClause) { - let (_, __diesel_internal_on_clause) = diesel::internal::table_macro::JoinOn::join_target( - table, - ); - (__diesel_internal_rhs, __diesel_internal_on_clause) - } - } - impl< - F, - S, - D, - W, - O, - L, - Of, - G, - > diesel::JoinTo< - diesel::internal::table_macro::SelectStatement< - diesel::internal::table_macro::FromClause, - S, - D, - W, - O, - L, - Of, - G, - >, - > for table - where - diesel::internal::table_macro::SelectStatement< - diesel::internal::table_macro::FromClause, - S, - D, - W, - O, - L, - Of, - G, - >: diesel::JoinTo
, - F: diesel::query_source::QuerySource, - { - type FromClause = diesel::internal::table_macro::SelectStatement< - diesel::internal::table_macro::FromClause, - S, - D, - W, - O, - L, - Of, - G, - >; - type OnClause = , - S, - D, - W, - O, - L, - Of, - G, - > as diesel::JoinTo
>::OnClause; - fn join_target( - __diesel_internal_rhs: diesel::internal::table_macro::SelectStatement< - diesel::internal::table_macro::FromClause, - S, - D, - W, - O, - L, - Of, - G, - >, - ) -> (Self::FromClause, Self::OnClause) { - let (_, __diesel_internal_on_clause) = diesel::internal::table_macro::SelectStatement::join_target( - table, - ); - (__diesel_internal_rhs, __diesel_internal_on_clause) - } - } - impl< - 'a, - QS, - ST, - DB, - > diesel::JoinTo< - diesel::internal::table_macro::BoxedSelectStatement< - 'a, - diesel::internal::table_macro::FromClause, - ST, - DB, - >, - > for table - where - diesel::internal::table_macro::BoxedSelectStatement< - 'a, - diesel::internal::table_macro::FromClause, - ST, - DB, - >: diesel::JoinTo
, - QS: diesel::query_source::QuerySource, - { - type FromClause = diesel::internal::table_macro::BoxedSelectStatement< - 'a, - diesel::internal::table_macro::FromClause, - ST, - DB, - >; - type OnClause = , - ST, - DB, - > as diesel::JoinTo
>::OnClause; - fn join_target( - __diesel_internal_rhs: diesel::internal::table_macro::BoxedSelectStatement< - 'a, - diesel::internal::table_macro::FromClause, - ST, - DB, - >, - ) -> (Self::FromClause, Self::OnClause) { - let (_, __diesel_internal_on_clause) = diesel::internal::table_macro::BoxedSelectStatement::join_target( - table, - ); - (__diesel_internal_rhs, __diesel_internal_on_clause) - } - } - impl diesel::JoinTo> for table - where - diesel::query_source::Alias: diesel::JoinTo
, - { - type FromClause = diesel::query_source::Alias; - type OnClause = as diesel::JoinTo
>::OnClause; - fn join_target( - __diesel_internal_rhs: diesel::query_source::Alias, - ) -> (Self::FromClause, Self::OnClause) { - let (_, __diesel_internal_on_clause) = diesel::query_source::Alias::< - S, - >::join_target(table); - (__diesel_internal_rhs, __diesel_internal_on_clause) - } - } - impl diesel::insertable::Insertable for table - where -
::Query: diesel::insertable::Insertable< - T, - >, - { - type Values = <
::Query as diesel::insertable::Insertable< - T, - >>::Values; - fn values(self) -> Self::Values { - use diesel::query_builder::AsQuery; - self.as_query().values() - } - } - impl<'a, T> diesel::insertable::Insertable for &'a table - where - table: diesel::insertable::Insertable, - { - type Values =
>::Values; - fn values(self) -> Self::Values { - (*self).values() - } - } - impl diesel::JoinTo> for table - where - diesel::query_builder::Only: diesel::JoinTo
, - { - type FromClause = diesel::query_builder::Only; - type OnClause = as diesel::JoinTo
>::OnClause; - fn join_target( - __diesel_internal_rhs: diesel::query_builder::Only, - ) -> (Self::FromClause, Self::OnClause) { - let (_, __diesel_internal_on_clause) = diesel::query_builder::Only::< - S, - >::join_target(table); - (__diesel_internal_rhs, __diesel_internal_on_clause) - } - } - impl diesel::query_source::AppearsInFromClause< - diesel::query_builder::Only
, - > for table { - type Count = diesel::query_source::Once; - } - impl diesel::query_source::AppearsInFromClause
- for diesel::query_builder::Only
{ - type Count = diesel::query_source::Once; - } - impl diesel::JoinTo> for table - where - diesel::query_builder::Tablesample: diesel::JoinTo
, - TSM: diesel::internal::table_macro::TablesampleMethod, - { - type FromClause = diesel::query_builder::Tablesample; - type OnClause = as diesel::JoinTo
>::OnClause; - fn join_target( - __diesel_internal_rhs: diesel::query_builder::Tablesample, - ) -> (Self::FromClause, Self::OnClause) { - let (_, __diesel_internal_on_clause) = diesel::query_builder::Tablesample::< - S, - TSM, - >::join_target(table); - (__diesel_internal_rhs, __diesel_internal_on_clause) - } - } - impl< - TSM, - > diesel::query_source::AppearsInFromClause< - diesel::query_builder::Tablesample, - > for table - where - TSM: diesel::internal::table_macro::TablesampleMethod, - { - type Count = diesel::query_source::Once; - } - impl diesel::query_source::AppearsInFromClause
- for diesel::query_builder::Tablesample - where - TSM: diesel::internal::table_macro::TablesampleMethod, - { - type Count = diesel::query_source::Once; - } - /// Contains all of the columns of this table - pub mod columns { - use ::diesel; - use super::table; - use diesel::sql_types::*; - #[allow(non_camel_case_types, dead_code)] - /// Represents `table_name.*`, which is sometimes needed for - /// efficient count queries. It cannot be used in place of - /// `all_columns`, and has a `SqlType` of `()` to prevent it - /// being used that way - pub struct star; - #[automatically_derived] - #[allow(non_camel_case_types, dead_code)] - impl ::core::fmt::Debug for star { - #[inline] - fn fmt(&self, f: &mut ::core::fmt::Formatter) -> ::core::fmt::Result { - ::core::fmt::Formatter::write_str(f, "star") - } - } - #[automatically_derived] - #[allow(non_camel_case_types, dead_code)] - impl ::core::clone::Clone for star { - #[inline] - fn clone(&self) -> star { - *self - } - } - #[automatically_derived] - #[allow(non_camel_case_types, dead_code)] - impl ::core::marker::Copy for star {} - #[allow(unused_imports)] - const _: () = { - use diesel; - use diesel::query_builder::QueryId; - #[allow(non_camel_case_types)] - impl QueryId for star { - type QueryId = star; - const HAS_STATIC_QUERY_ID: bool = true; - } - }; - impl<__GB> diesel::expression::ValidGrouping<__GB> for star - where - (id, document, pattern, alias): diesel::expression::ValidGrouping<__GB>, - { - type IsAggregate = <( - id, - document, - pattern, - alias, - ) as diesel::expression::ValidGrouping<__GB>>::IsAggregate; - } - impl diesel::Expression for star { - type SqlType = diesel::expression::expression_types::NotSelectable; - } - impl diesel::query_builder::QueryFragment - for star - where -
::FromClause: diesel::query_builder::QueryFragment< - DB, - >, - { - #[allow(non_snake_case)] - fn walk_ast<'b>( - &'b self, - mut __diesel_internal_out: diesel::query_builder::AstPass<'_, 'b, DB>, - ) -> diesel::result::QueryResult<()> { - use diesel::QuerySource; - if !__diesel_internal_out.should_skip_from() { - const FROM_CLAUSE: diesel::internal::table_macro::StaticQueryFragmentInstance< - table, - > = diesel::internal::table_macro::StaticQueryFragmentInstance::new(); - FROM_CLAUSE.walk_ast(__diesel_internal_out.reborrow())?; - __diesel_internal_out.push_sql("."); - } - __diesel_internal_out.push_sql("*"); - Ok(()) - } - } - impl diesel::SelectableExpression
for star {} - impl diesel::AppearsOnTable
for star {} - #[allow(non_camel_case_types, dead_code)] - pub struct id; - #[automatically_derived] - #[allow(non_camel_case_types, dead_code)] - impl ::core::fmt::Debug for id { - #[inline] - fn fmt(&self, f: &mut ::core::fmt::Formatter) -> ::core::fmt::Result { - ::core::fmt::Formatter::write_str(f, "id") - } - } - #[automatically_derived] - #[allow(non_camel_case_types, dead_code)] - impl ::core::clone::Clone for id { - #[inline] - fn clone(&self) -> id { - *self - } - } - #[automatically_derived] - #[allow(non_camel_case_types, dead_code)] - impl ::core::marker::Copy for id {} - #[allow(unused_imports)] - const _: () = { - use diesel; - use diesel::query_builder::QueryId; - #[allow(non_camel_case_types)] - impl QueryId for id { - type QueryId = id; - const HAS_STATIC_QUERY_ID: bool = true; - } - }; - #[automatically_derived] - #[allow(non_camel_case_types, dead_code)] - impl ::core::default::Default for id { - #[inline] - fn default() -> id { - id {} - } - } - impl diesel::expression::Expression for id { - type SqlType = Uuid; - } - impl diesel::query_builder::QueryFragment for id - where - DB: diesel::backend::Backend, - diesel::internal::table_macro::StaticQueryFragmentInstance< - table, - >: diesel::query_builder::QueryFragment, - { - #[allow(non_snake_case)] - fn walk_ast<'b>( - &'b self, - mut __diesel_internal_out: diesel::query_builder::AstPass<'_, 'b, DB>, - ) -> diesel::result::QueryResult<()> { - if !__diesel_internal_out.should_skip_from() { - const FROM_CLAUSE: diesel::internal::table_macro::StaticQueryFragmentInstance< - table, - > = diesel::internal::table_macro::StaticQueryFragmentInstance::new(); - FROM_CLAUSE.walk_ast(__diesel_internal_out.reborrow())?; - __diesel_internal_out.push_sql("."); - } - __diesel_internal_out.push_identifier("id") - } - } - impl diesel::SelectableExpression for id {} - impl diesel::AppearsOnTable for id - where - QS: diesel::query_source::AppearsInFromClause< - super::table, - Count = diesel::query_source::Once, - >, - {} - impl< - Left, - Right, - > diesel::SelectableExpression< - diesel::internal::table_macro::Join< - Left, - Right, - diesel::internal::table_macro::LeftOuter, - >, - > for id - where - id: diesel::AppearsOnTable< - diesel::internal::table_macro::Join< - Left, - Right, - diesel::internal::table_macro::LeftOuter, - >, - >, - Self: diesel::SelectableExpression, - Right: diesel::query_source::AppearsInFromClause< - super::table, - Count = diesel::query_source::Never, - > + diesel::query_source::QuerySource, - Left: diesel::query_source::QuerySource, - {} - impl< - Left, - Right, - > diesel::SelectableExpression< - diesel::internal::table_macro::Join< - Left, - Right, - diesel::internal::table_macro::Inner, - >, - > for id - where - id: diesel::AppearsOnTable< - diesel::internal::table_macro::Join< - Left, - Right, - diesel::internal::table_macro::Inner, - >, - >, - Left: diesel::query_source::AppearsInFromClause - + diesel::query_source::QuerySource, - Right: diesel::query_source::AppearsInFromClause - + diesel::query_source::QuerySource, - ( - Left::Count, - Right::Count, - ): diesel::internal::table_macro::Pick, - Self: diesel::SelectableExpression< - <( - Left::Count, - Right::Count, - ) as diesel::internal::table_macro::Pick>::Selection, - >, - {} - impl< - Join, - On, - > diesel::SelectableExpression< - diesel::internal::table_macro::JoinOn, - > for id - where - id: diesel::SelectableExpression - + diesel::AppearsOnTable< - diesel::internal::table_macro::JoinOn, - >, - {} - impl< - From, - > diesel::SelectableExpression< - diesel::internal::table_macro::SelectStatement< - diesel::internal::table_macro::FromClause, - >, - > for id - where - From: diesel::query_source::QuerySource, - id: diesel::SelectableExpression - + diesel::AppearsOnTable< - diesel::internal::table_macro::SelectStatement< - diesel::internal::table_macro::FromClause, - >, - >, - {} - impl<__GB> diesel::expression::ValidGrouping<__GB> for id - where - __GB: diesel::expression::IsContainedInGroupBy< - id, - Output = diesel::expression::is_contained_in_group_by::Yes, - >, - { - type IsAggregate = diesel::expression::is_aggregate::Yes; - } - impl diesel::expression::ValidGrouping<()> for id { - type IsAggregate = diesel::expression::is_aggregate::No; - } - impl diesel::expression::IsContainedInGroupBy for id { - type Output = diesel::expression::is_contained_in_group_by::Yes; - } - impl diesel::query_source::Column for id { - type Table = super::table; - const NAME: &'static str = "id"; - } - impl diesel::EqAll for id - where - T: diesel::expression::AsExpression, - diesel::dsl::Eq< - id, - T::Expression, - >: diesel::Expression, - { - type Output = diesel::dsl::Eq; - fn eq_all(self, __diesel_internal_rhs: T) -> Self::Output { - use diesel::expression_methods::ExpressionMethods; - self.eq(__diesel_internal_rhs) - } - } - impl diesel::query_source::AppearsInFromClause< - diesel::query_builder::Only, - > for id { - type Count = diesel::query_source::Once; - } - impl diesel::SelectableExpression> - for id {} - impl< - TSM, - > diesel::query_source::AppearsInFromClause< - diesel::query_builder::Tablesample, - > for id - where - TSM: diesel::internal::table_macro::TablesampleMethod, - { - type Count = diesel::query_source::Once; - } - impl< - TSM, - > diesel::SelectableExpression< - diesel::query_builder::Tablesample, - > for id - where - TSM: diesel::internal::table_macro::TablesampleMethod, - {} - #[allow(non_camel_case_types, dead_code)] - pub struct document; - #[automatically_derived] - #[allow(non_camel_case_types, dead_code)] - impl ::core::fmt::Debug for document { - #[inline] - fn fmt(&self, f: &mut ::core::fmt::Formatter) -> ::core::fmt::Result { - ::core::fmt::Formatter::write_str(f, "document") - } - } - #[automatically_derived] - #[allow(non_camel_case_types, dead_code)] - impl ::core::clone::Clone for document { - #[inline] - fn clone(&self) -> document { - *self - } - } - #[automatically_derived] - #[allow(non_camel_case_types, dead_code)] - impl ::core::marker::Copy for document {} - #[allow(unused_imports)] - const _: () = { - use diesel; - use diesel::query_builder::QueryId; - #[allow(non_camel_case_types)] - impl QueryId for document { - type QueryId = document; - const HAS_STATIC_QUERY_ID: bool = true; - } - }; - #[automatically_derived] - #[allow(non_camel_case_types, dead_code)] - impl ::core::default::Default for document { - #[inline] - fn default() -> document { - document {} - } - } - impl diesel::expression::Expression for document { - type SqlType = Bpchar; - } - impl diesel::query_builder::QueryFragment for document - where - DB: diesel::backend::Backend, - diesel::internal::table_macro::StaticQueryFragmentInstance< - table, - >: diesel::query_builder::QueryFragment, - { - #[allow(non_snake_case)] - fn walk_ast<'b>( - &'b self, - mut __diesel_internal_out: diesel::query_builder::AstPass<'_, 'b, DB>, - ) -> diesel::result::QueryResult<()> { - if !__diesel_internal_out.should_skip_from() { - const FROM_CLAUSE: diesel::internal::table_macro::StaticQueryFragmentInstance< - table, - > = diesel::internal::table_macro::StaticQueryFragmentInstance::new(); - FROM_CLAUSE.walk_ast(__diesel_internal_out.reborrow())?; - __diesel_internal_out.push_sql("."); - } - __diesel_internal_out.push_identifier("document") - } - } - impl diesel::SelectableExpression for document {} - impl diesel::AppearsOnTable for document - where - QS: diesel::query_source::AppearsInFromClause< - super::table, - Count = diesel::query_source::Once, - >, - {} - impl< - Left, - Right, - > diesel::SelectableExpression< - diesel::internal::table_macro::Join< - Left, - Right, - diesel::internal::table_macro::LeftOuter, - >, - > for document - where - document: diesel::AppearsOnTable< - diesel::internal::table_macro::Join< - Left, - Right, - diesel::internal::table_macro::LeftOuter, - >, - >, - Self: diesel::SelectableExpression, - Right: diesel::query_source::AppearsInFromClause< - super::table, - Count = diesel::query_source::Never, - > + diesel::query_source::QuerySource, - Left: diesel::query_source::QuerySource, - {} - impl< - Left, - Right, - > diesel::SelectableExpression< - diesel::internal::table_macro::Join< - Left, - Right, - diesel::internal::table_macro::Inner, - >, - > for document - where - document: diesel::AppearsOnTable< - diesel::internal::table_macro::Join< - Left, - Right, - diesel::internal::table_macro::Inner, - >, - >, - Left: diesel::query_source::AppearsInFromClause - + diesel::query_source::QuerySource, - Right: diesel::query_source::AppearsInFromClause - + diesel::query_source::QuerySource, - ( - Left::Count, - Right::Count, - ): diesel::internal::table_macro::Pick, - Self: diesel::SelectableExpression< - <( - Left::Count, - Right::Count, - ) as diesel::internal::table_macro::Pick>::Selection, - >, - {} - impl< - Join, - On, - > diesel::SelectableExpression< - diesel::internal::table_macro::JoinOn, - > for document - where - document: diesel::SelectableExpression - + diesel::AppearsOnTable< - diesel::internal::table_macro::JoinOn, - >, - {} - impl< - From, - > diesel::SelectableExpression< - diesel::internal::table_macro::SelectStatement< - diesel::internal::table_macro::FromClause, - >, - > for document - where - From: diesel::query_source::QuerySource, - document: diesel::SelectableExpression - + diesel::AppearsOnTable< - diesel::internal::table_macro::SelectStatement< - diesel::internal::table_macro::FromClause, - >, - >, - {} - impl<__GB> diesel::expression::ValidGrouping<__GB> for document - where - __GB: diesel::expression::IsContainedInGroupBy< - document, - Output = diesel::expression::is_contained_in_group_by::Yes, - >, - { - type IsAggregate = diesel::expression::is_aggregate::Yes; - } - impl diesel::expression::ValidGrouping<()> for document { - type IsAggregate = diesel::expression::is_aggregate::No; - } - impl diesel::expression::IsContainedInGroupBy for document { - type Output = diesel::expression::is_contained_in_group_by::Yes; - } - impl diesel::query_source::Column for document { - type Table = super::table; - const NAME: &'static str = "document"; - } - impl diesel::EqAll for document - where - T: diesel::expression::AsExpression, - diesel::dsl::Eq< - document, - T::Expression, - >: diesel::Expression, - { - type Output = diesel::dsl::Eq; - fn eq_all(self, __diesel_internal_rhs: T) -> Self::Output { - use diesel::expression_methods::ExpressionMethods; - self.eq(__diesel_internal_rhs) - } - } - impl diesel::query_source::AppearsInFromClause< - diesel::query_builder::Only, - > for document { - type Count = diesel::query_source::Once; - } - impl diesel::SelectableExpression> - for document {} - impl< - TSM, - > diesel::query_source::AppearsInFromClause< - diesel::query_builder::Tablesample, - > for document - where - TSM: diesel::internal::table_macro::TablesampleMethod, - { - type Count = diesel::query_source::Once; - } - impl< - TSM, - > diesel::SelectableExpression< - diesel::query_builder::Tablesample, - > for document - where - TSM: diesel::internal::table_macro::TablesampleMethod, - {} - #[allow(non_camel_case_types, dead_code)] - pub struct pattern; - #[automatically_derived] - #[allow(non_camel_case_types, dead_code)] - impl ::core::fmt::Debug for pattern { - #[inline] - fn fmt(&self, f: &mut ::core::fmt::Formatter) -> ::core::fmt::Result { - ::core::fmt::Formatter::write_str(f, "pattern") - } - } - #[automatically_derived] - #[allow(non_camel_case_types, dead_code)] - impl ::core::clone::Clone for pattern { - #[inline] - fn clone(&self) -> pattern { - *self - } - } - #[automatically_derived] - #[allow(non_camel_case_types, dead_code)] - impl ::core::marker::Copy for pattern {} - #[allow(unused_imports)] - const _: () = { - use diesel; - use diesel::query_builder::QueryId; - #[allow(non_camel_case_types)] - impl QueryId for pattern { - type QueryId = pattern; - const HAS_STATIC_QUERY_ID: bool = true; - } - }; - #[automatically_derived] - #[allow(non_camel_case_types, dead_code)] - impl ::core::default::Default for pattern { - #[inline] - fn default() -> pattern { - pattern {} - } - } - impl diesel::expression::Expression for pattern { - type SqlType = Bpchar; - } - impl diesel::query_builder::QueryFragment for pattern - where - DB: diesel::backend::Backend, - diesel::internal::table_macro::StaticQueryFragmentInstance< - table, - >: diesel::query_builder::QueryFragment, - { - #[allow(non_snake_case)] - fn walk_ast<'b>( - &'b self, - mut __diesel_internal_out: diesel::query_builder::AstPass<'_, 'b, DB>, - ) -> diesel::result::QueryResult<()> { - if !__diesel_internal_out.should_skip_from() { - const FROM_CLAUSE: diesel::internal::table_macro::StaticQueryFragmentInstance< - table, - > = diesel::internal::table_macro::StaticQueryFragmentInstance::new(); - FROM_CLAUSE.walk_ast(__diesel_internal_out.reborrow())?; - __diesel_internal_out.push_sql("."); - } - __diesel_internal_out.push_identifier("pattern") - } - } - impl diesel::SelectableExpression for pattern {} - impl diesel::AppearsOnTable for pattern - where - QS: diesel::query_source::AppearsInFromClause< - super::table, - Count = diesel::query_source::Once, - >, - {} - impl< - Left, - Right, - > diesel::SelectableExpression< - diesel::internal::table_macro::Join< - Left, - Right, - diesel::internal::table_macro::LeftOuter, - >, - > for pattern - where - pattern: diesel::AppearsOnTable< - diesel::internal::table_macro::Join< - Left, - Right, - diesel::internal::table_macro::LeftOuter, - >, - >, - Self: diesel::SelectableExpression, - Right: diesel::query_source::AppearsInFromClause< - super::table, - Count = diesel::query_source::Never, - > + diesel::query_source::QuerySource, - Left: diesel::query_source::QuerySource, - {} - impl< - Left, - Right, - > diesel::SelectableExpression< - diesel::internal::table_macro::Join< - Left, - Right, - diesel::internal::table_macro::Inner, - >, - > for pattern - where - pattern: diesel::AppearsOnTable< - diesel::internal::table_macro::Join< - Left, - Right, - diesel::internal::table_macro::Inner, - >, - >, - Left: diesel::query_source::AppearsInFromClause - + diesel::query_source::QuerySource, - Right: diesel::query_source::AppearsInFromClause - + diesel::query_source::QuerySource, - ( - Left::Count, - Right::Count, - ): diesel::internal::table_macro::Pick, - Self: diesel::SelectableExpression< - <( - Left::Count, - Right::Count, - ) as diesel::internal::table_macro::Pick>::Selection, - >, - {} - impl< - Join, - On, - > diesel::SelectableExpression< - diesel::internal::table_macro::JoinOn, - > for pattern - where - pattern: diesel::SelectableExpression - + diesel::AppearsOnTable< - diesel::internal::table_macro::JoinOn, - >, - {} - impl< - From, - > diesel::SelectableExpression< - diesel::internal::table_macro::SelectStatement< - diesel::internal::table_macro::FromClause, - >, - > for pattern - where - From: diesel::query_source::QuerySource, - pattern: diesel::SelectableExpression - + diesel::AppearsOnTable< - diesel::internal::table_macro::SelectStatement< - diesel::internal::table_macro::FromClause, - >, - >, - {} - impl<__GB> diesel::expression::ValidGrouping<__GB> for pattern - where - __GB: diesel::expression::IsContainedInGroupBy< - pattern, - Output = diesel::expression::is_contained_in_group_by::Yes, - >, - { - type IsAggregate = diesel::expression::is_aggregate::Yes; - } - impl diesel::expression::ValidGrouping<()> for pattern { - type IsAggregate = diesel::expression::is_aggregate::No; - } - impl diesel::expression::IsContainedInGroupBy for pattern { - type Output = diesel::expression::is_contained_in_group_by::Yes; - } - impl diesel::query_source::Column for pattern { - type Table = super::table; - const NAME: &'static str = "pattern"; - } - impl diesel::EqAll for pattern - where - T: diesel::expression::AsExpression, - diesel::dsl::Eq< - pattern, - T::Expression, - >: diesel::Expression, - { - type Output = diesel::dsl::Eq; - fn eq_all(self, __diesel_internal_rhs: T) -> Self::Output { - use diesel::expression_methods::ExpressionMethods; - self.eq(__diesel_internal_rhs) - } - } - impl diesel::query_source::AppearsInFromClause< - diesel::query_builder::Only, - > for pattern { - type Count = diesel::query_source::Once; - } - impl diesel::SelectableExpression> - for pattern {} - impl< - TSM, - > diesel::query_source::AppearsInFromClause< - diesel::query_builder::Tablesample, - > for pattern - where - TSM: diesel::internal::table_macro::TablesampleMethod, - { - type Count = diesel::query_source::Once; - } - impl< - TSM, - > diesel::SelectableExpression< - diesel::query_builder::Tablesample, - > for pattern - where - TSM: diesel::internal::table_macro::TablesampleMethod, - {} - #[allow(non_camel_case_types, dead_code)] - pub struct alias; - #[automatically_derived] - #[allow(non_camel_case_types, dead_code)] - impl ::core::fmt::Debug for alias { - #[inline] - fn fmt(&self, f: &mut ::core::fmt::Formatter) -> ::core::fmt::Result { - ::core::fmt::Formatter::write_str(f, "alias") - } - } - #[automatically_derived] - #[allow(non_camel_case_types, dead_code)] - impl ::core::clone::Clone for alias { - #[inline] - fn clone(&self) -> alias { - *self - } - } - #[automatically_derived] - #[allow(non_camel_case_types, dead_code)] - impl ::core::marker::Copy for alias {} - #[allow(unused_imports)] - const _: () = { - use diesel; - use diesel::query_builder::QueryId; - #[allow(non_camel_case_types)] - impl QueryId for alias { - type QueryId = alias; - const HAS_STATIC_QUERY_ID: bool = true; - } - }; - #[automatically_derived] - #[allow(non_camel_case_types, dead_code)] - impl ::core::default::Default for alias { - #[inline] - fn default() -> alias { - alias {} - } - } - impl diesel::expression::Expression for alias { - type SqlType = Bpchar; - } - impl diesel::query_builder::QueryFragment for alias - where - DB: diesel::backend::Backend, - diesel::internal::table_macro::StaticQueryFragmentInstance< - table, - >: diesel::query_builder::QueryFragment, - { - #[allow(non_snake_case)] - fn walk_ast<'b>( - &'b self, - mut __diesel_internal_out: diesel::query_builder::AstPass<'_, 'b, DB>, - ) -> diesel::result::QueryResult<()> { - if !__diesel_internal_out.should_skip_from() { - const FROM_CLAUSE: diesel::internal::table_macro::StaticQueryFragmentInstance< - table, - > = diesel::internal::table_macro::StaticQueryFragmentInstance::new(); - FROM_CLAUSE.walk_ast(__diesel_internal_out.reborrow())?; - __diesel_internal_out.push_sql("."); - } - __diesel_internal_out.push_identifier("alias") - } - } - impl diesel::SelectableExpression for alias {} - impl diesel::AppearsOnTable for alias - where - QS: diesel::query_source::AppearsInFromClause< - super::table, - Count = diesel::query_source::Once, - >, - {} - impl< - Left, - Right, - > diesel::SelectableExpression< - diesel::internal::table_macro::Join< - Left, - Right, - diesel::internal::table_macro::LeftOuter, - >, - > for alias - where - alias: diesel::AppearsOnTable< - diesel::internal::table_macro::Join< - Left, - Right, - diesel::internal::table_macro::LeftOuter, - >, - >, - Self: diesel::SelectableExpression, - Right: diesel::query_source::AppearsInFromClause< - super::table, - Count = diesel::query_source::Never, - > + diesel::query_source::QuerySource, - Left: diesel::query_source::QuerySource, - {} - impl< - Left, - Right, - > diesel::SelectableExpression< - diesel::internal::table_macro::Join< - Left, - Right, - diesel::internal::table_macro::Inner, - >, - > for alias - where - alias: diesel::AppearsOnTable< - diesel::internal::table_macro::Join< - Left, - Right, - diesel::internal::table_macro::Inner, - >, - >, - Left: diesel::query_source::AppearsInFromClause - + diesel::query_source::QuerySource, - Right: diesel::query_source::AppearsInFromClause - + diesel::query_source::QuerySource, - ( - Left::Count, - Right::Count, - ): diesel::internal::table_macro::Pick, - Self: diesel::SelectableExpression< - <( - Left::Count, - Right::Count, - ) as diesel::internal::table_macro::Pick>::Selection, - >, - {} - impl< - Join, - On, - > diesel::SelectableExpression< - diesel::internal::table_macro::JoinOn, - > for alias - where - alias: diesel::SelectableExpression - + diesel::AppearsOnTable< - diesel::internal::table_macro::JoinOn, - >, - {} - impl< - From, - > diesel::SelectableExpression< - diesel::internal::table_macro::SelectStatement< - diesel::internal::table_macro::FromClause, - >, - > for alias - where - From: diesel::query_source::QuerySource, - alias: diesel::SelectableExpression - + diesel::AppearsOnTable< - diesel::internal::table_macro::SelectStatement< - diesel::internal::table_macro::FromClause, - >, - >, - {} - impl<__GB> diesel::expression::ValidGrouping<__GB> for alias - where - __GB: diesel::expression::IsContainedInGroupBy< - alias, - Output = diesel::expression::is_contained_in_group_by::Yes, - >, - { - type IsAggregate = diesel::expression::is_aggregate::Yes; - } - impl diesel::expression::ValidGrouping<()> for alias { - type IsAggregate = diesel::expression::is_aggregate::No; - } - impl diesel::expression::IsContainedInGroupBy for alias { - type Output = diesel::expression::is_contained_in_group_by::Yes; - } - impl diesel::query_source::Column for alias { - type Table = super::table; - const NAME: &'static str = "alias"; - } - impl diesel::EqAll for alias - where - T: diesel::expression::AsExpression, - diesel::dsl::Eq< - alias, - T::Expression, - >: diesel::Expression, - { - type Output = diesel::dsl::Eq; - fn eq_all(self, __diesel_internal_rhs: T) -> Self::Output { - use diesel::expression_methods::ExpressionMethods; - self.eq(__diesel_internal_rhs) - } - } - impl diesel::query_source::AppearsInFromClause< - diesel::query_builder::Only, - > for alias { - type Count = diesel::query_source::Once; - } - impl diesel::SelectableExpression> - for alias {} - impl< - TSM, - > diesel::query_source::AppearsInFromClause< - diesel::query_builder::Tablesample, - > for alias - where - TSM: diesel::internal::table_macro::TablesampleMethod, - { - type Count = diesel::query_source::Once; - } - impl< - TSM, - > diesel::SelectableExpression< - diesel::query_builder::Tablesample, - > for alias - where - TSM: diesel::internal::table_macro::TablesampleMethod, - {} - impl diesel::expression::IsContainedInGroupBy for document { - type Output = diesel::expression::is_contained_in_group_by::No; - } - impl diesel::expression::IsContainedInGroupBy for id { - type Output = diesel::expression::is_contained_in_group_by::Yes; - } - impl diesel::expression::IsContainedInGroupBy for pattern { - type Output = diesel::expression::is_contained_in_group_by::No; - } - impl diesel::expression::IsContainedInGroupBy for id { - type Output = diesel::expression::is_contained_in_group_by::Yes; - } - impl diesel::expression::IsContainedInGroupBy for alias { - type Output = diesel::expression::is_contained_in_group_by::No; - } - impl diesel::expression::IsContainedInGroupBy for id { - type Output = diesel::expression::is_contained_in_group_by::Yes; - } - impl diesel::expression::IsContainedInGroupBy for pattern { - type Output = diesel::expression::is_contained_in_group_by::No; - } - impl diesel::expression::IsContainedInGroupBy for document { - type Output = diesel::expression::is_contained_in_group_by::No; - } - impl diesel::expression::IsContainedInGroupBy for alias { - type Output = diesel::expression::is_contained_in_group_by::No; - } - impl diesel::expression::IsContainedInGroupBy for document { - type Output = diesel::expression::is_contained_in_group_by::No; - } - impl diesel::expression::IsContainedInGroupBy for alias { - type Output = diesel::expression::is_contained_in_group_by::No; - } - impl diesel::expression::IsContainedInGroupBy for pattern { - type Output = diesel::expression::is_contained_in_group_by::No; - } - } - } - #[allow(unused_imports, dead_code, unreachable_pub, unused_qualifications)] - pub mod meta_link_properties { - use ::diesel; - pub use self::columns::*; - use diesel::sql_types::*; - /// Re-exports all of the columns of this table, as well as the - /// table struct renamed to the module name. This is meant to be - /// glob imported for functions which only deal with one table. - pub mod dsl { - pub use super::columns::id; - pub use super::columns::meta_link_id; - pub use super::columns::rel; - pub use super::columns::value; - pub use super::table as meta_link_properties; - } - #[allow(non_upper_case_globals, dead_code)] - /// A tuple of all of the columns on this table - pub const all_columns: (id, meta_link_id, rel, value) = ( - id, - meta_link_id, - rel, - value, - ); - #[allow(non_camel_case_types)] - /// The actual table struct - /// - /// This is the type which provides the base methods of the query - /// builder, such as `.select` and `.filter`. - pub struct table; - #[automatically_derived] - #[allow(non_camel_case_types)] - impl ::core::fmt::Debug for table { - #[inline] - fn fmt(&self, f: &mut ::core::fmt::Formatter) -> ::core::fmt::Result { - ::core::fmt::Formatter::write_str(f, "table") - } - } - #[automatically_derived] - #[allow(non_camel_case_types)] - impl ::core::clone::Clone for table { - #[inline] - fn clone(&self) -> table { - *self - } - } - #[automatically_derived] - #[allow(non_camel_case_types)] - impl ::core::marker::Copy for table {} - #[allow(unused_imports)] - const _: () = { - use diesel; - use diesel::query_builder::QueryId; - #[allow(non_camel_case_types)] - impl QueryId for table { - type QueryId = table; - const HAS_STATIC_QUERY_ID: bool = true; - } - }; - #[automatically_derived] - #[allow(non_camel_case_types)] - impl ::core::default::Default for table { - #[inline] - fn default() -> table { - table {} - } - } - impl table { - #[allow(dead_code)] - /// Represents `table_name.*`, which is sometimes necessary - /// for efficient count queries. It cannot be used in place of - /// `all_columns` - pub fn star(&self) -> star { - star - } - } - /// The SQL type of all of the columns on this table - pub type SqlType = (Uuid, Uuid, Bpchar, Nullable); - /// Helper type for representing a boxed query from this table - pub type BoxedQuery<'a, DB, ST = SqlType> = diesel::internal::table_macro::BoxedSelectStatement< - 'a, - ST, - diesel::internal::table_macro::FromClause
, - DB, - >; - impl diesel::QuerySource for table { - type FromClause = diesel::internal::table_macro::StaticQueryFragmentInstance< - table, - >; - type DefaultSelection = ::AllColumns; - fn from_clause(&self) -> Self::FromClause { - diesel::internal::table_macro::StaticQueryFragmentInstance::new() - } - fn default_selection(&self) -> Self::DefaultSelection { - use diesel::Table; - Self::all_columns() - } - } - impl diesel::query_builder::QueryFragment for table - where - DB: diesel::backend::Backend, -
::Component: diesel::query_builder::QueryFragment< - DB, - >, - { - fn walk_ast<'b>( - &'b self, - __diesel_internal_pass: diesel::query_builder::AstPass<'_, 'b, DB>, - ) -> diesel::result::QueryResult<()> { -
::STATIC_COMPONENT - .walk_ast(__diesel_internal_pass) - } - } - impl diesel::internal::table_macro::StaticQueryFragment for table { - type Component = diesel::internal::table_macro::Identifier<'static>; - const STATIC_COMPONENT: &'static Self::Component = &diesel::internal::table_macro::Identifier( - "meta_link_properties", - ); - } - impl diesel::query_builder::AsQuery for table { - type SqlType = SqlType; - type Query = diesel::internal::table_macro::SelectStatement< - diesel::internal::table_macro::FromClause, - >; - fn as_query(self) -> Self::Query { - diesel::internal::table_macro::SelectStatement::simple(self) - } - } - impl diesel::Table for table { - type PrimaryKey = id; - type AllColumns = (id, meta_link_id, rel, value); - fn primary_key(&self) -> Self::PrimaryKey { - id - } - fn all_columns() -> Self::AllColumns { - (id, meta_link_id, rel, value) - } - } - impl diesel::associations::HasTable for table { - type Table = Self; - fn table() -> Self::Table { - table - } - } - impl diesel::query_builder::IntoUpdateTarget for table { - type WhereClause = <::Query as diesel::query_builder::IntoUpdateTarget>::WhereClause; - fn into_update_target( - self, - ) -> diesel::query_builder::UpdateTarget { - use diesel::query_builder::AsQuery; - let q: diesel::internal::table_macro::SelectStatement< - diesel::internal::table_macro::FromClause
, - > = self.as_query(); - q.into_update_target() - } - } - impl diesel::query_source::AppearsInFromClause
for table { - type Count = diesel::query_source::Once; - } - impl diesel::internal::table_macro::AliasAppearsInFromClause - for table - where - S: diesel::query_source::AliasSource, - { - type Count = diesel::query_source::Never; - } - impl< - S1, - S2, - > diesel::internal::table_macro::AliasAliasAppearsInFromClause - for table - where - S1: diesel::query_source::AliasSource, - S2: diesel::query_source::AliasSource, - S1: diesel::internal::table_macro::AliasAliasAppearsInFromClauseSameTable< - S2, - table, - >, - { - type Count = >::Count; - } - impl diesel::query_source::AppearsInFromClause> - for table - where - S: diesel::query_source::AliasSource, - { - type Count = diesel::query_source::Never; - } - impl< - S, - C, - > diesel::internal::table_macro::FieldAliasMapperAssociatedTypesDisjointnessTrick< - table, - S, - C, - > for table - where - S: diesel::query_source::AliasSource + ::std::clone::Clone, - C: diesel::query_source::Column
, - { - type Out = diesel::query_source::AliasedField; - fn map( - __diesel_internal_column: C, - __diesel_internal_alias: &diesel::query_source::Alias, - ) -> Self::Out { - __diesel_internal_alias.field(__diesel_internal_column) - } - } - impl diesel::query_source::AppearsInFromClause
- for diesel::internal::table_macro::NoFromClause { - type Count = diesel::query_source::Never; - } - impl< - Left, - Right, - Kind, - > diesel::JoinTo> - for table - where - diesel::internal::table_macro::Join< - Left, - Right, - Kind, - >: diesel::JoinTo
, - Left: diesel::query_source::QuerySource, - Right: diesel::query_source::QuerySource, - { - type FromClause = diesel::internal::table_macro::Join; - type OnClause = as diesel::JoinTo
>::OnClause; - fn join_target( - __diesel_internal_rhs: diesel::internal::table_macro::Join< - Left, - Right, - Kind, - >, - ) -> (Self::FromClause, Self::OnClause) { - let (_, __diesel_internal_on_clause) = diesel::internal::table_macro::Join::join_target( - table, - ); - (__diesel_internal_rhs, __diesel_internal_on_clause) - } - } - impl diesel::JoinTo> - for table - where - diesel::internal::table_macro::JoinOn: diesel::JoinTo
, - { - type FromClause = diesel::internal::table_macro::JoinOn; - type OnClause = as diesel::JoinTo
>::OnClause; - fn join_target( - __diesel_internal_rhs: diesel::internal::table_macro::JoinOn, - ) -> (Self::FromClause, Self::OnClause) { - let (_, __diesel_internal_on_clause) = diesel::internal::table_macro::JoinOn::join_target( - table, - ); - (__diesel_internal_rhs, __diesel_internal_on_clause) - } - } - impl< - F, - S, - D, - W, - O, - L, - Of, - G, - > diesel::JoinTo< - diesel::internal::table_macro::SelectStatement< - diesel::internal::table_macro::FromClause, - S, - D, - W, - O, - L, - Of, - G, - >, - > for table - where - diesel::internal::table_macro::SelectStatement< - diesel::internal::table_macro::FromClause, - S, - D, - W, - O, - L, - Of, - G, - >: diesel::JoinTo
, - F: diesel::query_source::QuerySource, - { - type FromClause = diesel::internal::table_macro::SelectStatement< - diesel::internal::table_macro::FromClause, - S, - D, - W, - O, - L, - Of, - G, - >; - type OnClause = , - S, - D, - W, - O, - L, - Of, - G, - > as diesel::JoinTo
>::OnClause; - fn join_target( - __diesel_internal_rhs: diesel::internal::table_macro::SelectStatement< - diesel::internal::table_macro::FromClause, - S, - D, - W, - O, - L, - Of, - G, - >, - ) -> (Self::FromClause, Self::OnClause) { - let (_, __diesel_internal_on_clause) = diesel::internal::table_macro::SelectStatement::join_target( - table, - ); - (__diesel_internal_rhs, __diesel_internal_on_clause) - } - } - impl< - 'a, - QS, - ST, - DB, - > diesel::JoinTo< - diesel::internal::table_macro::BoxedSelectStatement< - 'a, - diesel::internal::table_macro::FromClause, - ST, - DB, - >, - > for table - where - diesel::internal::table_macro::BoxedSelectStatement< - 'a, - diesel::internal::table_macro::FromClause, - ST, - DB, - >: diesel::JoinTo
, - QS: diesel::query_source::QuerySource, - { - type FromClause = diesel::internal::table_macro::BoxedSelectStatement< - 'a, - diesel::internal::table_macro::FromClause, - ST, - DB, - >; - type OnClause = , - ST, - DB, - > as diesel::JoinTo
>::OnClause; - fn join_target( - __diesel_internal_rhs: diesel::internal::table_macro::BoxedSelectStatement< - 'a, - diesel::internal::table_macro::FromClause, - ST, - DB, - >, - ) -> (Self::FromClause, Self::OnClause) { - let (_, __diesel_internal_on_clause) = diesel::internal::table_macro::BoxedSelectStatement::join_target( - table, - ); - (__diesel_internal_rhs, __diesel_internal_on_clause) - } - } - impl diesel::JoinTo> for table - where - diesel::query_source::Alias: diesel::JoinTo
, - { - type FromClause = diesel::query_source::Alias; - type OnClause = as diesel::JoinTo
>::OnClause; - fn join_target( - __diesel_internal_rhs: diesel::query_source::Alias, - ) -> (Self::FromClause, Self::OnClause) { - let (_, __diesel_internal_on_clause) = diesel::query_source::Alias::< - S, - >::join_target(table); - (__diesel_internal_rhs, __diesel_internal_on_clause) - } - } - impl diesel::insertable::Insertable for table - where -
::Query: diesel::insertable::Insertable< - T, - >, - { - type Values = <
::Query as diesel::insertable::Insertable< - T, - >>::Values; - fn values(self) -> Self::Values { - use diesel::query_builder::AsQuery; - self.as_query().values() - } - } - impl<'a, T> diesel::insertable::Insertable for &'a table - where - table: diesel::insertable::Insertable, - { - type Values =
>::Values; - fn values(self) -> Self::Values { - (*self).values() - } - } - impl diesel::JoinTo> for table - where - diesel::query_builder::Only: diesel::JoinTo
, - { - type FromClause = diesel::query_builder::Only; - type OnClause = as diesel::JoinTo
>::OnClause; - fn join_target( - __diesel_internal_rhs: diesel::query_builder::Only, - ) -> (Self::FromClause, Self::OnClause) { - let (_, __diesel_internal_on_clause) = diesel::query_builder::Only::< - S, - >::join_target(table); - (__diesel_internal_rhs, __diesel_internal_on_clause) - } - } - impl diesel::query_source::AppearsInFromClause< - diesel::query_builder::Only
, - > for table { - type Count = diesel::query_source::Once; - } - impl diesel::query_source::AppearsInFromClause
- for diesel::query_builder::Only
{ - type Count = diesel::query_source::Once; - } - impl diesel::JoinTo> for table - where - diesel::query_builder::Tablesample: diesel::JoinTo
, - TSM: diesel::internal::table_macro::TablesampleMethod, - { - type FromClause = diesel::query_builder::Tablesample; - type OnClause = as diesel::JoinTo
>::OnClause; - fn join_target( - __diesel_internal_rhs: diesel::query_builder::Tablesample, - ) -> (Self::FromClause, Self::OnClause) { - let (_, __diesel_internal_on_clause) = diesel::query_builder::Tablesample::< - S, - TSM, - >::join_target(table); - (__diesel_internal_rhs, __diesel_internal_on_clause) - } - } - impl< - TSM, - > diesel::query_source::AppearsInFromClause< - diesel::query_builder::Tablesample, - > for table - where - TSM: diesel::internal::table_macro::TablesampleMethod, - { - type Count = diesel::query_source::Once; - } - impl diesel::query_source::AppearsInFromClause
- for diesel::query_builder::Tablesample - where - TSM: diesel::internal::table_macro::TablesampleMethod, - { - type Count = diesel::query_source::Once; - } - /// Contains all of the columns of this table - pub mod columns { - use ::diesel; - use super::table; - use diesel::sql_types::*; - #[allow(non_camel_case_types, dead_code)] - /// Represents `table_name.*`, which is sometimes needed for - /// efficient count queries. It cannot be used in place of - /// `all_columns`, and has a `SqlType` of `()` to prevent it - /// being used that way - pub struct star; - #[automatically_derived] - #[allow(non_camel_case_types, dead_code)] - impl ::core::fmt::Debug for star { - #[inline] - fn fmt(&self, f: &mut ::core::fmt::Formatter) -> ::core::fmt::Result { - ::core::fmt::Formatter::write_str(f, "star") - } - } - #[automatically_derived] - #[allow(non_camel_case_types, dead_code)] - impl ::core::clone::Clone for star { - #[inline] - fn clone(&self) -> star { - *self - } - } - #[automatically_derived] - #[allow(non_camel_case_types, dead_code)] - impl ::core::marker::Copy for star {} - #[allow(unused_imports)] - const _: () = { - use diesel; - use diesel::query_builder::QueryId; - #[allow(non_camel_case_types)] - impl QueryId for star { - type QueryId = star; - const HAS_STATIC_QUERY_ID: bool = true; - } - }; - impl<__GB> diesel::expression::ValidGrouping<__GB> for star - where - (id, meta_link_id, rel, value): diesel::expression::ValidGrouping<__GB>, - { - type IsAggregate = <( - id, - meta_link_id, - rel, - value, - ) as diesel::expression::ValidGrouping<__GB>>::IsAggregate; - } - impl diesel::Expression for star { - type SqlType = diesel::expression::expression_types::NotSelectable; - } - impl diesel::query_builder::QueryFragment - for star - where -
::FromClause: diesel::query_builder::QueryFragment< - DB, - >, - { - #[allow(non_snake_case)] - fn walk_ast<'b>( - &'b self, - mut __diesel_internal_out: diesel::query_builder::AstPass<'_, 'b, DB>, - ) -> diesel::result::QueryResult<()> { - use diesel::QuerySource; - if !__diesel_internal_out.should_skip_from() { - const FROM_CLAUSE: diesel::internal::table_macro::StaticQueryFragmentInstance< - table, - > = diesel::internal::table_macro::StaticQueryFragmentInstance::new(); - FROM_CLAUSE.walk_ast(__diesel_internal_out.reborrow())?; - __diesel_internal_out.push_sql("."); - } - __diesel_internal_out.push_sql("*"); - Ok(()) - } - } - impl diesel::SelectableExpression
for star {} - impl diesel::AppearsOnTable
for star {} - #[allow(non_camel_case_types, dead_code)] - pub struct id; - #[automatically_derived] - #[allow(non_camel_case_types, dead_code)] - impl ::core::fmt::Debug for id { - #[inline] - fn fmt(&self, f: &mut ::core::fmt::Formatter) -> ::core::fmt::Result { - ::core::fmt::Formatter::write_str(f, "id") - } - } - #[automatically_derived] - #[allow(non_camel_case_types, dead_code)] - impl ::core::clone::Clone for id { - #[inline] - fn clone(&self) -> id { - *self - } - } - #[automatically_derived] - #[allow(non_camel_case_types, dead_code)] - impl ::core::marker::Copy for id {} - #[allow(unused_imports)] - const _: () = { - use diesel; - use diesel::query_builder::QueryId; - #[allow(non_camel_case_types)] - impl QueryId for id { - type QueryId = id; - const HAS_STATIC_QUERY_ID: bool = true; - } - }; - #[automatically_derived] - #[allow(non_camel_case_types, dead_code)] - impl ::core::default::Default for id { - #[inline] - fn default() -> id { - id {} - } - } - impl diesel::expression::Expression for id { - type SqlType = Uuid; - } - impl diesel::query_builder::QueryFragment for id - where - DB: diesel::backend::Backend, - diesel::internal::table_macro::StaticQueryFragmentInstance< - table, - >: diesel::query_builder::QueryFragment, - { - #[allow(non_snake_case)] - fn walk_ast<'b>( - &'b self, - mut __diesel_internal_out: diesel::query_builder::AstPass<'_, 'b, DB>, - ) -> diesel::result::QueryResult<()> { - if !__diesel_internal_out.should_skip_from() { - const FROM_CLAUSE: diesel::internal::table_macro::StaticQueryFragmentInstance< - table, - > = diesel::internal::table_macro::StaticQueryFragmentInstance::new(); - FROM_CLAUSE.walk_ast(__diesel_internal_out.reborrow())?; - __diesel_internal_out.push_sql("."); - } - __diesel_internal_out.push_identifier("id") - } - } - impl diesel::SelectableExpression for id {} - impl diesel::AppearsOnTable for id - where - QS: diesel::query_source::AppearsInFromClause< - super::table, - Count = diesel::query_source::Once, - >, - {} - impl< - Left, - Right, - > diesel::SelectableExpression< - diesel::internal::table_macro::Join< - Left, - Right, - diesel::internal::table_macro::LeftOuter, - >, - > for id - where - id: diesel::AppearsOnTable< - diesel::internal::table_macro::Join< - Left, - Right, - diesel::internal::table_macro::LeftOuter, - >, - >, - Self: diesel::SelectableExpression, - Right: diesel::query_source::AppearsInFromClause< - super::table, - Count = diesel::query_source::Never, - > + diesel::query_source::QuerySource, - Left: diesel::query_source::QuerySource, - {} - impl< - Left, - Right, - > diesel::SelectableExpression< - diesel::internal::table_macro::Join< - Left, - Right, - diesel::internal::table_macro::Inner, - >, - > for id - where - id: diesel::AppearsOnTable< - diesel::internal::table_macro::Join< - Left, - Right, - diesel::internal::table_macro::Inner, - >, - >, - Left: diesel::query_source::AppearsInFromClause - + diesel::query_source::QuerySource, - Right: diesel::query_source::AppearsInFromClause - + diesel::query_source::QuerySource, - ( - Left::Count, - Right::Count, - ): diesel::internal::table_macro::Pick, - Self: diesel::SelectableExpression< - <( - Left::Count, - Right::Count, - ) as diesel::internal::table_macro::Pick>::Selection, - >, - {} - impl< - Join, - On, - > diesel::SelectableExpression< - diesel::internal::table_macro::JoinOn, - > for id - where - id: diesel::SelectableExpression - + diesel::AppearsOnTable< - diesel::internal::table_macro::JoinOn, - >, - {} - impl< - From, - > diesel::SelectableExpression< - diesel::internal::table_macro::SelectStatement< - diesel::internal::table_macro::FromClause, - >, - > for id - where - From: diesel::query_source::QuerySource, - id: diesel::SelectableExpression - + diesel::AppearsOnTable< - diesel::internal::table_macro::SelectStatement< - diesel::internal::table_macro::FromClause, - >, - >, - {} - impl<__GB> diesel::expression::ValidGrouping<__GB> for id - where - __GB: diesel::expression::IsContainedInGroupBy< - id, - Output = diesel::expression::is_contained_in_group_by::Yes, - >, - { - type IsAggregate = diesel::expression::is_aggregate::Yes; - } - impl diesel::expression::ValidGrouping<()> for id { - type IsAggregate = diesel::expression::is_aggregate::No; - } - impl diesel::expression::IsContainedInGroupBy for id { - type Output = diesel::expression::is_contained_in_group_by::Yes; - } - impl diesel::query_source::Column for id { - type Table = super::table; - const NAME: &'static str = "id"; - } - impl diesel::EqAll for id - where - T: diesel::expression::AsExpression, - diesel::dsl::Eq< - id, - T::Expression, - >: diesel::Expression, - { - type Output = diesel::dsl::Eq; - fn eq_all(self, __diesel_internal_rhs: T) -> Self::Output { - use diesel::expression_methods::ExpressionMethods; - self.eq(__diesel_internal_rhs) - } - } - impl diesel::query_source::AppearsInFromClause< - diesel::query_builder::Only, - > for id { - type Count = diesel::query_source::Once; - } - impl diesel::SelectableExpression> - for id {} - impl< - TSM, - > diesel::query_source::AppearsInFromClause< - diesel::query_builder::Tablesample, - > for id - where - TSM: diesel::internal::table_macro::TablesampleMethod, - { - type Count = diesel::query_source::Once; - } - impl< - TSM, - > diesel::SelectableExpression< - diesel::query_builder::Tablesample, - > for id - where - TSM: diesel::internal::table_macro::TablesampleMethod, - {} - #[allow(non_camel_case_types, dead_code)] - pub struct meta_link_id; - #[automatically_derived] - #[allow(non_camel_case_types, dead_code)] - impl ::core::fmt::Debug for meta_link_id { - #[inline] - fn fmt(&self, f: &mut ::core::fmt::Formatter) -> ::core::fmt::Result { - ::core::fmt::Formatter::write_str(f, "meta_link_id") - } - } - #[automatically_derived] - #[allow(non_camel_case_types, dead_code)] - impl ::core::clone::Clone for meta_link_id { - #[inline] - fn clone(&self) -> meta_link_id { - *self - } - } - #[automatically_derived] - #[allow(non_camel_case_types, dead_code)] - impl ::core::marker::Copy for meta_link_id {} - #[allow(unused_imports)] - const _: () = { - use diesel; - use diesel::query_builder::QueryId; - #[allow(non_camel_case_types)] - impl QueryId for meta_link_id { - type QueryId = meta_link_id; - const HAS_STATIC_QUERY_ID: bool = true; - } - }; - #[automatically_derived] - #[allow(non_camel_case_types, dead_code)] - impl ::core::default::Default for meta_link_id { - #[inline] - fn default() -> meta_link_id { - meta_link_id {} - } - } - impl diesel::expression::Expression for meta_link_id { - type SqlType = Uuid; - } - impl diesel::query_builder::QueryFragment for meta_link_id - where - DB: diesel::backend::Backend, - diesel::internal::table_macro::StaticQueryFragmentInstance< - table, - >: diesel::query_builder::QueryFragment, - { - #[allow(non_snake_case)] - fn walk_ast<'b>( - &'b self, - mut __diesel_internal_out: diesel::query_builder::AstPass<'_, 'b, DB>, - ) -> diesel::result::QueryResult<()> { - if !__diesel_internal_out.should_skip_from() { - const FROM_CLAUSE: diesel::internal::table_macro::StaticQueryFragmentInstance< - table, - > = diesel::internal::table_macro::StaticQueryFragmentInstance::new(); - FROM_CLAUSE.walk_ast(__diesel_internal_out.reborrow())?; - __diesel_internal_out.push_sql("."); - } - __diesel_internal_out.push_identifier("meta_link_id") - } - } - impl diesel::SelectableExpression for meta_link_id {} - impl diesel::AppearsOnTable for meta_link_id - where - QS: diesel::query_source::AppearsInFromClause< - super::table, - Count = diesel::query_source::Once, - >, - {} - impl< - Left, - Right, - > diesel::SelectableExpression< - diesel::internal::table_macro::Join< - Left, - Right, - diesel::internal::table_macro::LeftOuter, - >, - > for meta_link_id - where - meta_link_id: diesel::AppearsOnTable< - diesel::internal::table_macro::Join< - Left, - Right, - diesel::internal::table_macro::LeftOuter, - >, - >, - Self: diesel::SelectableExpression, - Right: diesel::query_source::AppearsInFromClause< - super::table, - Count = diesel::query_source::Never, - > + diesel::query_source::QuerySource, - Left: diesel::query_source::QuerySource, - {} - impl< - Left, - Right, - > diesel::SelectableExpression< - diesel::internal::table_macro::Join< - Left, - Right, - diesel::internal::table_macro::Inner, - >, - > for meta_link_id - where - meta_link_id: diesel::AppearsOnTable< - diesel::internal::table_macro::Join< - Left, - Right, - diesel::internal::table_macro::Inner, - >, - >, - Left: diesel::query_source::AppearsInFromClause - + diesel::query_source::QuerySource, - Right: diesel::query_source::AppearsInFromClause - + diesel::query_source::QuerySource, - ( - Left::Count, - Right::Count, - ): diesel::internal::table_macro::Pick, - Self: diesel::SelectableExpression< - <( - Left::Count, - Right::Count, - ) as diesel::internal::table_macro::Pick>::Selection, - >, - {} - impl< - Join, - On, - > diesel::SelectableExpression< - diesel::internal::table_macro::JoinOn, - > for meta_link_id - where - meta_link_id: diesel::SelectableExpression - + diesel::AppearsOnTable< - diesel::internal::table_macro::JoinOn, - >, - {} - impl< - From, - > diesel::SelectableExpression< - diesel::internal::table_macro::SelectStatement< - diesel::internal::table_macro::FromClause, - >, - > for meta_link_id - where - From: diesel::query_source::QuerySource, - meta_link_id: diesel::SelectableExpression - + diesel::AppearsOnTable< - diesel::internal::table_macro::SelectStatement< - diesel::internal::table_macro::FromClause, - >, - >, - {} - impl<__GB> diesel::expression::ValidGrouping<__GB> for meta_link_id - where - __GB: diesel::expression::IsContainedInGroupBy< - meta_link_id, - Output = diesel::expression::is_contained_in_group_by::Yes, - >, - { - type IsAggregate = diesel::expression::is_aggregate::Yes; - } - impl diesel::expression::ValidGrouping<()> for meta_link_id { - type IsAggregate = diesel::expression::is_aggregate::No; - } - impl diesel::expression::IsContainedInGroupBy - for meta_link_id { - type Output = diesel::expression::is_contained_in_group_by::Yes; - } - impl diesel::query_source::Column for meta_link_id { - type Table = super::table; - const NAME: &'static str = "meta_link_id"; - } - impl diesel::EqAll for meta_link_id - where - T: diesel::expression::AsExpression, - diesel::dsl::Eq< - meta_link_id, - T::Expression, - >: diesel::Expression, - { - type Output = diesel::dsl::Eq; - fn eq_all(self, __diesel_internal_rhs: T) -> Self::Output { - use diesel::expression_methods::ExpressionMethods; - self.eq(__diesel_internal_rhs) - } - } - impl diesel::query_source::AppearsInFromClause< - diesel::query_builder::Only, - > for meta_link_id { - type Count = diesel::query_source::Once; - } - impl diesel::SelectableExpression> - for meta_link_id {} - impl< - TSM, - > diesel::query_source::AppearsInFromClause< - diesel::query_builder::Tablesample, - > for meta_link_id - where - TSM: diesel::internal::table_macro::TablesampleMethod, - { - type Count = diesel::query_source::Once; - } - impl< - TSM, - > diesel::SelectableExpression< - diesel::query_builder::Tablesample, - > for meta_link_id - where - TSM: diesel::internal::table_macro::TablesampleMethod, - {} - #[allow(non_camel_case_types, dead_code)] - pub struct rel; - #[automatically_derived] - #[allow(non_camel_case_types, dead_code)] - impl ::core::fmt::Debug for rel { - #[inline] - fn fmt(&self, f: &mut ::core::fmt::Formatter) -> ::core::fmt::Result { - ::core::fmt::Formatter::write_str(f, "rel") - } - } - #[automatically_derived] - #[allow(non_camel_case_types, dead_code)] - impl ::core::clone::Clone for rel { - #[inline] - fn clone(&self) -> rel { - *self - } - } - #[automatically_derived] - #[allow(non_camel_case_types, dead_code)] - impl ::core::marker::Copy for rel {} - #[allow(unused_imports)] - const _: () = { - use diesel; - use diesel::query_builder::QueryId; - #[allow(non_camel_case_types)] - impl QueryId for rel { - type QueryId = rel; - const HAS_STATIC_QUERY_ID: bool = true; - } - }; - #[automatically_derived] - #[allow(non_camel_case_types, dead_code)] - impl ::core::default::Default for rel { - #[inline] - fn default() -> rel { - rel {} - } - } - impl diesel::expression::Expression for rel { - type SqlType = Bpchar; - } - impl diesel::query_builder::QueryFragment for rel - where - DB: diesel::backend::Backend, - diesel::internal::table_macro::StaticQueryFragmentInstance< - table, - >: diesel::query_builder::QueryFragment, - { - #[allow(non_snake_case)] - fn walk_ast<'b>( - &'b self, - mut __diesel_internal_out: diesel::query_builder::AstPass<'_, 'b, DB>, - ) -> diesel::result::QueryResult<()> { - if !__diesel_internal_out.should_skip_from() { - const FROM_CLAUSE: diesel::internal::table_macro::StaticQueryFragmentInstance< - table, - > = diesel::internal::table_macro::StaticQueryFragmentInstance::new(); - FROM_CLAUSE.walk_ast(__diesel_internal_out.reborrow())?; - __diesel_internal_out.push_sql("."); - } - __diesel_internal_out.push_identifier("rel") - } - } - impl diesel::SelectableExpression for rel {} - impl diesel::AppearsOnTable for rel - where - QS: diesel::query_source::AppearsInFromClause< - super::table, - Count = diesel::query_source::Once, - >, - {} - impl< - Left, - Right, - > diesel::SelectableExpression< - diesel::internal::table_macro::Join< - Left, - Right, - diesel::internal::table_macro::LeftOuter, - >, - > for rel - where - rel: diesel::AppearsOnTable< - diesel::internal::table_macro::Join< - Left, - Right, - diesel::internal::table_macro::LeftOuter, - >, - >, - Self: diesel::SelectableExpression, - Right: diesel::query_source::AppearsInFromClause< - super::table, - Count = diesel::query_source::Never, - > + diesel::query_source::QuerySource, - Left: diesel::query_source::QuerySource, - {} - impl< - Left, - Right, - > diesel::SelectableExpression< - diesel::internal::table_macro::Join< - Left, - Right, - diesel::internal::table_macro::Inner, - >, - > for rel - where - rel: diesel::AppearsOnTable< - diesel::internal::table_macro::Join< - Left, - Right, - diesel::internal::table_macro::Inner, - >, - >, - Left: diesel::query_source::AppearsInFromClause - + diesel::query_source::QuerySource, - Right: diesel::query_source::AppearsInFromClause - + diesel::query_source::QuerySource, - ( - Left::Count, - Right::Count, - ): diesel::internal::table_macro::Pick, - Self: diesel::SelectableExpression< - <( - Left::Count, - Right::Count, - ) as diesel::internal::table_macro::Pick>::Selection, - >, - {} - impl< - Join, - On, - > diesel::SelectableExpression< - diesel::internal::table_macro::JoinOn, - > for rel - where - rel: diesel::SelectableExpression - + diesel::AppearsOnTable< - diesel::internal::table_macro::JoinOn, - >, - {} - impl< - From, - > diesel::SelectableExpression< - diesel::internal::table_macro::SelectStatement< - diesel::internal::table_macro::FromClause, - >, - > for rel - where - From: diesel::query_source::QuerySource, - rel: diesel::SelectableExpression - + diesel::AppearsOnTable< - diesel::internal::table_macro::SelectStatement< - diesel::internal::table_macro::FromClause, - >, - >, - {} - impl<__GB> diesel::expression::ValidGrouping<__GB> for rel - where - __GB: diesel::expression::IsContainedInGroupBy< - rel, - Output = diesel::expression::is_contained_in_group_by::Yes, - >, - { - type IsAggregate = diesel::expression::is_aggregate::Yes; - } - impl diesel::expression::ValidGrouping<()> for rel { - type IsAggregate = diesel::expression::is_aggregate::No; - } - impl diesel::expression::IsContainedInGroupBy for rel { - type Output = diesel::expression::is_contained_in_group_by::Yes; - } - impl diesel::query_source::Column for rel { - type Table = super::table; - const NAME: &'static str = "rel"; - } - impl diesel::EqAll for rel - where - T: diesel::expression::AsExpression, - diesel::dsl::Eq< - rel, - T::Expression, - >: diesel::Expression, - { - type Output = diesel::dsl::Eq; - fn eq_all(self, __diesel_internal_rhs: T) -> Self::Output { - use diesel::expression_methods::ExpressionMethods; - self.eq(__diesel_internal_rhs) - } - } - impl diesel::query_source::AppearsInFromClause< - diesel::query_builder::Only, - > for rel { - type Count = diesel::query_source::Once; - } - impl diesel::SelectableExpression> - for rel {} - impl< - TSM, - > diesel::query_source::AppearsInFromClause< - diesel::query_builder::Tablesample, - > for rel - where - TSM: diesel::internal::table_macro::TablesampleMethod, - { - type Count = diesel::query_source::Once; - } - impl< - TSM, - > diesel::SelectableExpression< - diesel::query_builder::Tablesample, - > for rel - where - TSM: diesel::internal::table_macro::TablesampleMethod, - {} - #[allow(non_camel_case_types, dead_code)] - pub struct value; - #[automatically_derived] - #[allow(non_camel_case_types, dead_code)] - impl ::core::fmt::Debug for value { - #[inline] - fn fmt(&self, f: &mut ::core::fmt::Formatter) -> ::core::fmt::Result { - ::core::fmt::Formatter::write_str(f, "value") - } - } - #[automatically_derived] - #[allow(non_camel_case_types, dead_code)] - impl ::core::clone::Clone for value { - #[inline] - fn clone(&self) -> value { - *self - } - } - #[automatically_derived] - #[allow(non_camel_case_types, dead_code)] - impl ::core::marker::Copy for value {} - #[allow(unused_imports)] - const _: () = { - use diesel; - use diesel::query_builder::QueryId; - #[allow(non_camel_case_types)] - impl QueryId for value { - type QueryId = value; - const HAS_STATIC_QUERY_ID: bool = true; - } - }; - #[automatically_derived] - #[allow(non_camel_case_types, dead_code)] - impl ::core::default::Default for value { - #[inline] - fn default() -> value { - value {} - } - } - impl diesel::expression::Expression for value { - type SqlType = Nullable; - } - impl diesel::query_builder::QueryFragment for value - where - DB: diesel::backend::Backend, - diesel::internal::table_macro::StaticQueryFragmentInstance< - table, - >: diesel::query_builder::QueryFragment, - { - #[allow(non_snake_case)] - fn walk_ast<'b>( - &'b self, - mut __diesel_internal_out: diesel::query_builder::AstPass<'_, 'b, DB>, - ) -> diesel::result::QueryResult<()> { - if !__diesel_internal_out.should_skip_from() { - const FROM_CLAUSE: diesel::internal::table_macro::StaticQueryFragmentInstance< - table, - > = diesel::internal::table_macro::StaticQueryFragmentInstance::new(); - FROM_CLAUSE.walk_ast(__diesel_internal_out.reborrow())?; - __diesel_internal_out.push_sql("."); - } - __diesel_internal_out.push_identifier("value") - } - } - impl diesel::SelectableExpression for value {} - impl diesel::AppearsOnTable for value - where - QS: diesel::query_source::AppearsInFromClause< - super::table, - Count = diesel::query_source::Once, - >, - {} - impl< - Left, - Right, - > diesel::SelectableExpression< - diesel::internal::table_macro::Join< - Left, - Right, - diesel::internal::table_macro::LeftOuter, - >, - > for value - where - value: diesel::AppearsOnTable< - diesel::internal::table_macro::Join< - Left, - Right, - diesel::internal::table_macro::LeftOuter, - >, - >, - Self: diesel::SelectableExpression, - Right: diesel::query_source::AppearsInFromClause< - super::table, - Count = diesel::query_source::Never, - > + diesel::query_source::QuerySource, - Left: diesel::query_source::QuerySource, - {} - impl< - Left, - Right, - > diesel::SelectableExpression< - diesel::internal::table_macro::Join< - Left, - Right, - diesel::internal::table_macro::Inner, - >, - > for value - where - value: diesel::AppearsOnTable< - diesel::internal::table_macro::Join< - Left, - Right, - diesel::internal::table_macro::Inner, - >, - >, - Left: diesel::query_source::AppearsInFromClause - + diesel::query_source::QuerySource, - Right: diesel::query_source::AppearsInFromClause - + diesel::query_source::QuerySource, - ( - Left::Count, - Right::Count, - ): diesel::internal::table_macro::Pick, - Self: diesel::SelectableExpression< - <( - Left::Count, - Right::Count, - ) as diesel::internal::table_macro::Pick>::Selection, - >, - {} - impl< - Join, - On, - > diesel::SelectableExpression< - diesel::internal::table_macro::JoinOn, - > for value - where - value: diesel::SelectableExpression - + diesel::AppearsOnTable< - diesel::internal::table_macro::JoinOn, - >, - {} - impl< - From, - > diesel::SelectableExpression< - diesel::internal::table_macro::SelectStatement< - diesel::internal::table_macro::FromClause, - >, - > for value - where - From: diesel::query_source::QuerySource, - value: diesel::SelectableExpression - + diesel::AppearsOnTable< - diesel::internal::table_macro::SelectStatement< - diesel::internal::table_macro::FromClause, - >, - >, - {} - impl<__GB> diesel::expression::ValidGrouping<__GB> for value - where - __GB: diesel::expression::IsContainedInGroupBy< - value, - Output = diesel::expression::is_contained_in_group_by::Yes, - >, - { - type IsAggregate = diesel::expression::is_aggregate::Yes; - } - impl diesel::expression::ValidGrouping<()> for value { - type IsAggregate = diesel::expression::is_aggregate::No; - } - impl diesel::expression::IsContainedInGroupBy for value { - type Output = diesel::expression::is_contained_in_group_by::Yes; - } - impl diesel::query_source::Column for value { - type Table = super::table; - const NAME: &'static str = "value"; - } - impl diesel::EqAll for value - where - T: diesel::expression::AsExpression>, - diesel::dsl::Eq< - value, - T::Expression, - >: diesel::Expression, - { - type Output = diesel::dsl::Eq; - fn eq_all(self, __diesel_internal_rhs: T) -> Self::Output { - use diesel::expression_methods::ExpressionMethods; - self.eq(__diesel_internal_rhs) - } - } - impl diesel::query_source::AppearsInFromClause< - diesel::query_builder::Only, - > for value { - type Count = diesel::query_source::Once; - } - impl diesel::SelectableExpression> - for value {} - impl< - TSM, - > diesel::query_source::AppearsInFromClause< - diesel::query_builder::Tablesample, - > for value - where - TSM: diesel::internal::table_macro::TablesampleMethod, - { - type Count = diesel::query_source::Once; - } - impl< - TSM, - > diesel::SelectableExpression< - diesel::query_builder::Tablesample, - > for value - where - TSM: diesel::internal::table_macro::TablesampleMethod, - {} - impl diesel::expression::IsContainedInGroupBy for meta_link_id { - type Output = diesel::expression::is_contained_in_group_by::No; - } - impl diesel::expression::IsContainedInGroupBy for id { - type Output = diesel::expression::is_contained_in_group_by::Yes; - } - impl diesel::expression::IsContainedInGroupBy for rel { - type Output = diesel::expression::is_contained_in_group_by::No; - } - impl diesel::expression::IsContainedInGroupBy for id { - type Output = diesel::expression::is_contained_in_group_by::Yes; - } - impl diesel::expression::IsContainedInGroupBy for value { - type Output = diesel::expression::is_contained_in_group_by::No; - } - impl diesel::expression::IsContainedInGroupBy for id { - type Output = diesel::expression::is_contained_in_group_by::Yes; - } - impl diesel::expression::IsContainedInGroupBy for rel { - type Output = diesel::expression::is_contained_in_group_by::No; - } - impl diesel::expression::IsContainedInGroupBy for meta_link_id { - type Output = diesel::expression::is_contained_in_group_by::No; - } - impl diesel::expression::IsContainedInGroupBy for value { - type Output = diesel::expression::is_contained_in_group_by::No; - } - impl diesel::expression::IsContainedInGroupBy for meta_link_id { - type Output = diesel::expression::is_contained_in_group_by::No; - } - impl diesel::expression::IsContainedInGroupBy for value { - type Output = diesel::expression::is_contained_in_group_by::No; - } - impl diesel::expression::IsContainedInGroupBy for rel { - type Output = diesel::expression::is_contained_in_group_by::No; - } - } - } - #[allow(unused_imports, dead_code, unreachable_pub, unused_qualifications)] - pub mod meta_link_titles { - use ::diesel; - pub use self::columns::*; - use diesel::sql_types::*; - /// Re-exports all of the columns of this table, as well as the - /// table struct renamed to the module name. This is meant to be - /// glob imported for functions which only deal with one table. - pub mod dsl { - pub use super::columns::id; - pub use super::columns::meta_link_id; - pub use super::columns::language; - pub use super::columns::value; - pub use super::table as meta_link_titles; - } - #[allow(non_upper_case_globals, dead_code)] - /// A tuple of all of the columns on this table - pub const all_columns: (id, meta_link_id, language, value) = ( - id, - meta_link_id, - language, - value, - ); - #[allow(non_camel_case_types)] - /// The actual table struct - /// - /// This is the type which provides the base methods of the query - /// builder, such as `.select` and `.filter`. - pub struct table; - #[automatically_derived] - #[allow(non_camel_case_types)] - impl ::core::fmt::Debug for table { - #[inline] - fn fmt(&self, f: &mut ::core::fmt::Formatter) -> ::core::fmt::Result { - ::core::fmt::Formatter::write_str(f, "table") - } - } - #[automatically_derived] - #[allow(non_camel_case_types)] - impl ::core::clone::Clone for table { - #[inline] - fn clone(&self) -> table { - *self - } - } - #[automatically_derived] - #[allow(non_camel_case_types)] - impl ::core::marker::Copy for table {} - #[allow(unused_imports)] - const _: () = { - use diesel; - use diesel::query_builder::QueryId; - #[allow(non_camel_case_types)] - impl QueryId for table { - type QueryId = table; - const HAS_STATIC_QUERY_ID: bool = true; - } - }; - #[automatically_derived] - #[allow(non_camel_case_types)] - impl ::core::default::Default for table { - #[inline] - fn default() -> table { - table {} - } - } - impl table { - #[allow(dead_code)] - /// Represents `table_name.*`, which is sometimes necessary - /// for efficient count queries. It cannot be used in place of - /// `all_columns` - pub fn star(&self) -> star { - star - } - } - /// The SQL type of all of the columns on this table - pub type SqlType = (Uuid, Uuid, Bpchar, Bpchar); - /// Helper type for representing a boxed query from this table - pub type BoxedQuery<'a, DB, ST = SqlType> = diesel::internal::table_macro::BoxedSelectStatement< - 'a, - ST, - diesel::internal::table_macro::FromClause
, - DB, - >; - impl diesel::QuerySource for table { - type FromClause = diesel::internal::table_macro::StaticQueryFragmentInstance< - table, - >; - type DefaultSelection = ::AllColumns; - fn from_clause(&self) -> Self::FromClause { - diesel::internal::table_macro::StaticQueryFragmentInstance::new() - } - fn default_selection(&self) -> Self::DefaultSelection { - use diesel::Table; - Self::all_columns() - } - } - impl diesel::query_builder::QueryFragment for table - where - DB: diesel::backend::Backend, -
::Component: diesel::query_builder::QueryFragment< - DB, - >, - { - fn walk_ast<'b>( - &'b self, - __diesel_internal_pass: diesel::query_builder::AstPass<'_, 'b, DB>, - ) -> diesel::result::QueryResult<()> { -
::STATIC_COMPONENT - .walk_ast(__diesel_internal_pass) - } - } - impl diesel::internal::table_macro::StaticQueryFragment for table { - type Component = diesel::internal::table_macro::Identifier<'static>; - const STATIC_COMPONENT: &'static Self::Component = &diesel::internal::table_macro::Identifier( - "meta_link_titles", - ); - } - impl diesel::query_builder::AsQuery for table { - type SqlType = SqlType; - type Query = diesel::internal::table_macro::SelectStatement< - diesel::internal::table_macro::FromClause, - >; - fn as_query(self) -> Self::Query { - diesel::internal::table_macro::SelectStatement::simple(self) - } - } - impl diesel::Table for table { - type PrimaryKey = id; - type AllColumns = (id, meta_link_id, language, value); - fn primary_key(&self) -> Self::PrimaryKey { - id - } - fn all_columns() -> Self::AllColumns { - (id, meta_link_id, language, value) - } - } - impl diesel::associations::HasTable for table { - type Table = Self; - fn table() -> Self::Table { - table - } - } - impl diesel::query_builder::IntoUpdateTarget for table { - type WhereClause = <::Query as diesel::query_builder::IntoUpdateTarget>::WhereClause; - fn into_update_target( - self, - ) -> diesel::query_builder::UpdateTarget { - use diesel::query_builder::AsQuery; - let q: diesel::internal::table_macro::SelectStatement< - diesel::internal::table_macro::FromClause
, - > = self.as_query(); - q.into_update_target() - } - } - impl diesel::query_source::AppearsInFromClause
for table { - type Count = diesel::query_source::Once; - } - impl diesel::internal::table_macro::AliasAppearsInFromClause - for table - where - S: diesel::query_source::AliasSource, - { - type Count = diesel::query_source::Never; - } - impl< - S1, - S2, - > diesel::internal::table_macro::AliasAliasAppearsInFromClause - for table - where - S1: diesel::query_source::AliasSource, - S2: diesel::query_source::AliasSource, - S1: diesel::internal::table_macro::AliasAliasAppearsInFromClauseSameTable< - S2, - table, - >, - { - type Count = >::Count; - } - impl diesel::query_source::AppearsInFromClause> - for table - where - S: diesel::query_source::AliasSource, - { - type Count = diesel::query_source::Never; - } - impl< - S, - C, - > diesel::internal::table_macro::FieldAliasMapperAssociatedTypesDisjointnessTrick< - table, - S, - C, - > for table - where - S: diesel::query_source::AliasSource + ::std::clone::Clone, - C: diesel::query_source::Column
, - { - type Out = diesel::query_source::AliasedField; - fn map( - __diesel_internal_column: C, - __diesel_internal_alias: &diesel::query_source::Alias, - ) -> Self::Out { - __diesel_internal_alias.field(__diesel_internal_column) - } - } - impl diesel::query_source::AppearsInFromClause
- for diesel::internal::table_macro::NoFromClause { - type Count = diesel::query_source::Never; - } - impl< - Left, - Right, - Kind, - > diesel::JoinTo> - for table - where - diesel::internal::table_macro::Join< - Left, - Right, - Kind, - >: diesel::JoinTo
, - Left: diesel::query_source::QuerySource, - Right: diesel::query_source::QuerySource, - { - type FromClause = diesel::internal::table_macro::Join; - type OnClause = as diesel::JoinTo
>::OnClause; - fn join_target( - __diesel_internal_rhs: diesel::internal::table_macro::Join< - Left, - Right, - Kind, - >, - ) -> (Self::FromClause, Self::OnClause) { - let (_, __diesel_internal_on_clause) = diesel::internal::table_macro::Join::join_target( - table, - ); - (__diesel_internal_rhs, __diesel_internal_on_clause) - } - } - impl diesel::JoinTo> - for table - where - diesel::internal::table_macro::JoinOn: diesel::JoinTo
, - { - type FromClause = diesel::internal::table_macro::JoinOn; - type OnClause = as diesel::JoinTo
>::OnClause; - fn join_target( - __diesel_internal_rhs: diesel::internal::table_macro::JoinOn, - ) -> (Self::FromClause, Self::OnClause) { - let (_, __diesel_internal_on_clause) = diesel::internal::table_macro::JoinOn::join_target( - table, - ); - (__diesel_internal_rhs, __diesel_internal_on_clause) - } - } - impl< - F, - S, - D, - W, - O, - L, - Of, - G, - > diesel::JoinTo< - diesel::internal::table_macro::SelectStatement< - diesel::internal::table_macro::FromClause, - S, - D, - W, - O, - L, - Of, - G, - >, - > for table - where - diesel::internal::table_macro::SelectStatement< - diesel::internal::table_macro::FromClause, - S, - D, - W, - O, - L, - Of, - G, - >: diesel::JoinTo
, - F: diesel::query_source::QuerySource, - { - type FromClause = diesel::internal::table_macro::SelectStatement< - diesel::internal::table_macro::FromClause, - S, - D, - W, - O, - L, - Of, - G, - >; - type OnClause = , - S, - D, - W, - O, - L, - Of, - G, - > as diesel::JoinTo
>::OnClause; - fn join_target( - __diesel_internal_rhs: diesel::internal::table_macro::SelectStatement< - diesel::internal::table_macro::FromClause, - S, - D, - W, - O, - L, - Of, - G, - >, - ) -> (Self::FromClause, Self::OnClause) { - let (_, __diesel_internal_on_clause) = diesel::internal::table_macro::SelectStatement::join_target( - table, - ); - (__diesel_internal_rhs, __diesel_internal_on_clause) - } - } - impl< - 'a, - QS, - ST, - DB, - > diesel::JoinTo< - diesel::internal::table_macro::BoxedSelectStatement< - 'a, - diesel::internal::table_macro::FromClause, - ST, - DB, - >, - > for table - where - diesel::internal::table_macro::BoxedSelectStatement< - 'a, - diesel::internal::table_macro::FromClause, - ST, - DB, - >: diesel::JoinTo
, - QS: diesel::query_source::QuerySource, - { - type FromClause = diesel::internal::table_macro::BoxedSelectStatement< - 'a, - diesel::internal::table_macro::FromClause, - ST, - DB, - >; - type OnClause = , - ST, - DB, - > as diesel::JoinTo
>::OnClause; - fn join_target( - __diesel_internal_rhs: diesel::internal::table_macro::BoxedSelectStatement< - 'a, - diesel::internal::table_macro::FromClause, - ST, - DB, - >, - ) -> (Self::FromClause, Self::OnClause) { - let (_, __diesel_internal_on_clause) = diesel::internal::table_macro::BoxedSelectStatement::join_target( - table, - ); - (__diesel_internal_rhs, __diesel_internal_on_clause) - } - } - impl diesel::JoinTo> for table - where - diesel::query_source::Alias: diesel::JoinTo
, - { - type FromClause = diesel::query_source::Alias; - type OnClause = as diesel::JoinTo
>::OnClause; - fn join_target( - __diesel_internal_rhs: diesel::query_source::Alias, - ) -> (Self::FromClause, Self::OnClause) { - let (_, __diesel_internal_on_clause) = diesel::query_source::Alias::< - S, - >::join_target(table); - (__diesel_internal_rhs, __diesel_internal_on_clause) - } - } - impl diesel::insertable::Insertable for table - where -
::Query: diesel::insertable::Insertable< - T, - >, - { - type Values = <
::Query as diesel::insertable::Insertable< - T, - >>::Values; - fn values(self) -> Self::Values { - use diesel::query_builder::AsQuery; - self.as_query().values() - } - } - impl<'a, T> diesel::insertable::Insertable for &'a table - where - table: diesel::insertable::Insertable, - { - type Values =
>::Values; - fn values(self) -> Self::Values { - (*self).values() - } - } - impl diesel::JoinTo> for table - where - diesel::query_builder::Only: diesel::JoinTo
, - { - type FromClause = diesel::query_builder::Only; - type OnClause = as diesel::JoinTo
>::OnClause; - fn join_target( - __diesel_internal_rhs: diesel::query_builder::Only, - ) -> (Self::FromClause, Self::OnClause) { - let (_, __diesel_internal_on_clause) = diesel::query_builder::Only::< - S, - >::join_target(table); - (__diesel_internal_rhs, __diesel_internal_on_clause) - } - } - impl diesel::query_source::AppearsInFromClause< - diesel::query_builder::Only
, - > for table { - type Count = diesel::query_source::Once; - } - impl diesel::query_source::AppearsInFromClause
- for diesel::query_builder::Only
{ - type Count = diesel::query_source::Once; - } - impl diesel::JoinTo> for table - where - diesel::query_builder::Tablesample: diesel::JoinTo
, - TSM: diesel::internal::table_macro::TablesampleMethod, - { - type FromClause = diesel::query_builder::Tablesample; - type OnClause = as diesel::JoinTo
>::OnClause; - fn join_target( - __diesel_internal_rhs: diesel::query_builder::Tablesample, - ) -> (Self::FromClause, Self::OnClause) { - let (_, __diesel_internal_on_clause) = diesel::query_builder::Tablesample::< - S, - TSM, - >::join_target(table); - (__diesel_internal_rhs, __diesel_internal_on_clause) - } - } - impl< - TSM, - > diesel::query_source::AppearsInFromClause< - diesel::query_builder::Tablesample, - > for table - where - TSM: diesel::internal::table_macro::TablesampleMethod, - { - type Count = diesel::query_source::Once; - } - impl diesel::query_source::AppearsInFromClause
- for diesel::query_builder::Tablesample - where - TSM: diesel::internal::table_macro::TablesampleMethod, - { - type Count = diesel::query_source::Once; - } - /// Contains all of the columns of this table - pub mod columns { - use ::diesel; - use super::table; - use diesel::sql_types::*; - #[allow(non_camel_case_types, dead_code)] - /// Represents `table_name.*`, which is sometimes needed for - /// efficient count queries. It cannot be used in place of - /// `all_columns`, and has a `SqlType` of `()` to prevent it - /// being used that way - pub struct star; - #[automatically_derived] - #[allow(non_camel_case_types, dead_code)] - impl ::core::fmt::Debug for star { - #[inline] - fn fmt(&self, f: &mut ::core::fmt::Formatter) -> ::core::fmt::Result { - ::core::fmt::Formatter::write_str(f, "star") - } - } - #[automatically_derived] - #[allow(non_camel_case_types, dead_code)] - impl ::core::clone::Clone for star { - #[inline] - fn clone(&self) -> star { - *self - } - } - #[automatically_derived] - #[allow(non_camel_case_types, dead_code)] - impl ::core::marker::Copy for star {} - #[allow(unused_imports)] - const _: () = { - use diesel; - use diesel::query_builder::QueryId; - #[allow(non_camel_case_types)] - impl QueryId for star { - type QueryId = star; - const HAS_STATIC_QUERY_ID: bool = true; - } - }; - impl<__GB> diesel::expression::ValidGrouping<__GB> for star - where - ( - id, - meta_link_id, - language, - value, - ): diesel::expression::ValidGrouping<__GB>, - { - type IsAggregate = <( - id, - meta_link_id, - language, - value, - ) as diesel::expression::ValidGrouping<__GB>>::IsAggregate; - } - impl diesel::Expression for star { - type SqlType = diesel::expression::expression_types::NotSelectable; - } - impl diesel::query_builder::QueryFragment - for star - where -
::FromClause: diesel::query_builder::QueryFragment< - DB, - >, - { - #[allow(non_snake_case)] - fn walk_ast<'b>( - &'b self, - mut __diesel_internal_out: diesel::query_builder::AstPass<'_, 'b, DB>, - ) -> diesel::result::QueryResult<()> { - use diesel::QuerySource; - if !__diesel_internal_out.should_skip_from() { - const FROM_CLAUSE: diesel::internal::table_macro::StaticQueryFragmentInstance< - table, - > = diesel::internal::table_macro::StaticQueryFragmentInstance::new(); - FROM_CLAUSE.walk_ast(__diesel_internal_out.reborrow())?; - __diesel_internal_out.push_sql("."); - } - __diesel_internal_out.push_sql("*"); - Ok(()) - } - } - impl diesel::SelectableExpression
for star {} - impl diesel::AppearsOnTable
for star {} - #[allow(non_camel_case_types, dead_code)] - pub struct id; - #[automatically_derived] - #[allow(non_camel_case_types, dead_code)] - impl ::core::fmt::Debug for id { - #[inline] - fn fmt(&self, f: &mut ::core::fmt::Formatter) -> ::core::fmt::Result { - ::core::fmt::Formatter::write_str(f, "id") - } - } - #[automatically_derived] - #[allow(non_camel_case_types, dead_code)] - impl ::core::clone::Clone for id { - #[inline] - fn clone(&self) -> id { - *self - } - } - #[automatically_derived] - #[allow(non_camel_case_types, dead_code)] - impl ::core::marker::Copy for id {} - #[allow(unused_imports)] - const _: () = { - use diesel; - use diesel::query_builder::QueryId; - #[allow(non_camel_case_types)] - impl QueryId for id { - type QueryId = id; - const HAS_STATIC_QUERY_ID: bool = true; - } - }; - #[automatically_derived] - #[allow(non_camel_case_types, dead_code)] - impl ::core::default::Default for id { - #[inline] - fn default() -> id { - id {} - } - } - impl diesel::expression::Expression for id { - type SqlType = Uuid; - } - impl diesel::query_builder::QueryFragment for id - where - DB: diesel::backend::Backend, - diesel::internal::table_macro::StaticQueryFragmentInstance< - table, - >: diesel::query_builder::QueryFragment, - { - #[allow(non_snake_case)] - fn walk_ast<'b>( - &'b self, - mut __diesel_internal_out: diesel::query_builder::AstPass<'_, 'b, DB>, - ) -> diesel::result::QueryResult<()> { - if !__diesel_internal_out.should_skip_from() { - const FROM_CLAUSE: diesel::internal::table_macro::StaticQueryFragmentInstance< - table, - > = diesel::internal::table_macro::StaticQueryFragmentInstance::new(); - FROM_CLAUSE.walk_ast(__diesel_internal_out.reborrow())?; - __diesel_internal_out.push_sql("."); - } - __diesel_internal_out.push_identifier("id") - } - } - impl diesel::SelectableExpression for id {} - impl diesel::AppearsOnTable for id - where - QS: diesel::query_source::AppearsInFromClause< - super::table, - Count = diesel::query_source::Once, - >, - {} - impl< - Left, - Right, - > diesel::SelectableExpression< - diesel::internal::table_macro::Join< - Left, - Right, - diesel::internal::table_macro::LeftOuter, - >, - > for id - where - id: diesel::AppearsOnTable< - diesel::internal::table_macro::Join< - Left, - Right, - diesel::internal::table_macro::LeftOuter, - >, - >, - Self: diesel::SelectableExpression, - Right: diesel::query_source::AppearsInFromClause< - super::table, - Count = diesel::query_source::Never, - > + diesel::query_source::QuerySource, - Left: diesel::query_source::QuerySource, - {} - impl< - Left, - Right, - > diesel::SelectableExpression< - diesel::internal::table_macro::Join< - Left, - Right, - diesel::internal::table_macro::Inner, - >, - > for id - where - id: diesel::AppearsOnTable< - diesel::internal::table_macro::Join< - Left, - Right, - diesel::internal::table_macro::Inner, - >, - >, - Left: diesel::query_source::AppearsInFromClause - + diesel::query_source::QuerySource, - Right: diesel::query_source::AppearsInFromClause - + diesel::query_source::QuerySource, - ( - Left::Count, - Right::Count, - ): diesel::internal::table_macro::Pick, - Self: diesel::SelectableExpression< - <( - Left::Count, - Right::Count, - ) as diesel::internal::table_macro::Pick>::Selection, - >, - {} - impl< - Join, - On, - > diesel::SelectableExpression< - diesel::internal::table_macro::JoinOn, - > for id - where - id: diesel::SelectableExpression - + diesel::AppearsOnTable< - diesel::internal::table_macro::JoinOn, - >, - {} - impl< - From, - > diesel::SelectableExpression< - diesel::internal::table_macro::SelectStatement< - diesel::internal::table_macro::FromClause, - >, - > for id - where - From: diesel::query_source::QuerySource, - id: diesel::SelectableExpression - + diesel::AppearsOnTable< - diesel::internal::table_macro::SelectStatement< - diesel::internal::table_macro::FromClause, - >, - >, - {} - impl<__GB> diesel::expression::ValidGrouping<__GB> for id - where - __GB: diesel::expression::IsContainedInGroupBy< - id, - Output = diesel::expression::is_contained_in_group_by::Yes, - >, - { - type IsAggregate = diesel::expression::is_aggregate::Yes; - } - impl diesel::expression::ValidGrouping<()> for id { - type IsAggregate = diesel::expression::is_aggregate::No; - } - impl diesel::expression::IsContainedInGroupBy for id { - type Output = diesel::expression::is_contained_in_group_by::Yes; - } - impl diesel::query_source::Column for id { - type Table = super::table; - const NAME: &'static str = "id"; - } - impl diesel::EqAll for id - where - T: diesel::expression::AsExpression, - diesel::dsl::Eq< - id, - T::Expression, - >: diesel::Expression, - { - type Output = diesel::dsl::Eq; - fn eq_all(self, __diesel_internal_rhs: T) -> Self::Output { - use diesel::expression_methods::ExpressionMethods; - self.eq(__diesel_internal_rhs) - } - } - impl diesel::query_source::AppearsInFromClause< - diesel::query_builder::Only, - > for id { - type Count = diesel::query_source::Once; - } - impl diesel::SelectableExpression> - for id {} - impl< - TSM, - > diesel::query_source::AppearsInFromClause< - diesel::query_builder::Tablesample, - > for id - where - TSM: diesel::internal::table_macro::TablesampleMethod, - { - type Count = diesel::query_source::Once; - } - impl< - TSM, - > diesel::SelectableExpression< - diesel::query_builder::Tablesample, - > for id - where - TSM: diesel::internal::table_macro::TablesampleMethod, - {} - #[allow(non_camel_case_types, dead_code)] - pub struct meta_link_id; - #[automatically_derived] - #[allow(non_camel_case_types, dead_code)] - impl ::core::fmt::Debug for meta_link_id { - #[inline] - fn fmt(&self, f: &mut ::core::fmt::Formatter) -> ::core::fmt::Result { - ::core::fmt::Formatter::write_str(f, "meta_link_id") - } - } - #[automatically_derived] - #[allow(non_camel_case_types, dead_code)] - impl ::core::clone::Clone for meta_link_id { - #[inline] - fn clone(&self) -> meta_link_id { - *self - } - } - #[automatically_derived] - #[allow(non_camel_case_types, dead_code)] - impl ::core::marker::Copy for meta_link_id {} - #[allow(unused_imports)] - const _: () = { - use diesel; - use diesel::query_builder::QueryId; - #[allow(non_camel_case_types)] - impl QueryId for meta_link_id { - type QueryId = meta_link_id; - const HAS_STATIC_QUERY_ID: bool = true; - } - }; - #[automatically_derived] - #[allow(non_camel_case_types, dead_code)] - impl ::core::default::Default for meta_link_id { - #[inline] - fn default() -> meta_link_id { - meta_link_id {} - } - } - impl diesel::expression::Expression for meta_link_id { - type SqlType = Uuid; - } - impl diesel::query_builder::QueryFragment for meta_link_id - where - DB: diesel::backend::Backend, - diesel::internal::table_macro::StaticQueryFragmentInstance< - table, - >: diesel::query_builder::QueryFragment, - { - #[allow(non_snake_case)] - fn walk_ast<'b>( - &'b self, - mut __diesel_internal_out: diesel::query_builder::AstPass<'_, 'b, DB>, - ) -> diesel::result::QueryResult<()> { - if !__diesel_internal_out.should_skip_from() { - const FROM_CLAUSE: diesel::internal::table_macro::StaticQueryFragmentInstance< - table, - > = diesel::internal::table_macro::StaticQueryFragmentInstance::new(); - FROM_CLAUSE.walk_ast(__diesel_internal_out.reborrow())?; - __diesel_internal_out.push_sql("."); - } - __diesel_internal_out.push_identifier("meta_link_id") - } - } - impl diesel::SelectableExpression for meta_link_id {} - impl diesel::AppearsOnTable for meta_link_id - where - QS: diesel::query_source::AppearsInFromClause< - super::table, - Count = diesel::query_source::Once, - >, - {} - impl< - Left, - Right, - > diesel::SelectableExpression< - diesel::internal::table_macro::Join< - Left, - Right, - diesel::internal::table_macro::LeftOuter, - >, - > for meta_link_id - where - meta_link_id: diesel::AppearsOnTable< - diesel::internal::table_macro::Join< - Left, - Right, - diesel::internal::table_macro::LeftOuter, - >, - >, - Self: diesel::SelectableExpression, - Right: diesel::query_source::AppearsInFromClause< - super::table, - Count = diesel::query_source::Never, - > + diesel::query_source::QuerySource, - Left: diesel::query_source::QuerySource, - {} - impl< - Left, - Right, - > diesel::SelectableExpression< - diesel::internal::table_macro::Join< - Left, - Right, - diesel::internal::table_macro::Inner, - >, - > for meta_link_id - where - meta_link_id: diesel::AppearsOnTable< - diesel::internal::table_macro::Join< - Left, - Right, - diesel::internal::table_macro::Inner, - >, - >, - Left: diesel::query_source::AppearsInFromClause - + diesel::query_source::QuerySource, - Right: diesel::query_source::AppearsInFromClause - + diesel::query_source::QuerySource, - ( - Left::Count, - Right::Count, - ): diesel::internal::table_macro::Pick, - Self: diesel::SelectableExpression< - <( - Left::Count, - Right::Count, - ) as diesel::internal::table_macro::Pick>::Selection, - >, - {} - impl< - Join, - On, - > diesel::SelectableExpression< - diesel::internal::table_macro::JoinOn, - > for meta_link_id - where - meta_link_id: diesel::SelectableExpression - + diesel::AppearsOnTable< - diesel::internal::table_macro::JoinOn, - >, - {} - impl< - From, - > diesel::SelectableExpression< - diesel::internal::table_macro::SelectStatement< - diesel::internal::table_macro::FromClause, - >, - > for meta_link_id - where - From: diesel::query_source::QuerySource, - meta_link_id: diesel::SelectableExpression - + diesel::AppearsOnTable< - diesel::internal::table_macro::SelectStatement< - diesel::internal::table_macro::FromClause, - >, - >, - {} - impl<__GB> diesel::expression::ValidGrouping<__GB> for meta_link_id - where - __GB: diesel::expression::IsContainedInGroupBy< - meta_link_id, - Output = diesel::expression::is_contained_in_group_by::Yes, - >, - { - type IsAggregate = diesel::expression::is_aggregate::Yes; - } - impl diesel::expression::ValidGrouping<()> for meta_link_id { - type IsAggregate = diesel::expression::is_aggregate::No; - } - impl diesel::expression::IsContainedInGroupBy - for meta_link_id { - type Output = diesel::expression::is_contained_in_group_by::Yes; - } - impl diesel::query_source::Column for meta_link_id { - type Table = super::table; - const NAME: &'static str = "meta_link_id"; - } - impl diesel::EqAll for meta_link_id - where - T: diesel::expression::AsExpression, - diesel::dsl::Eq< - meta_link_id, - T::Expression, - >: diesel::Expression, - { - type Output = diesel::dsl::Eq; - fn eq_all(self, __diesel_internal_rhs: T) -> Self::Output { - use diesel::expression_methods::ExpressionMethods; - self.eq(__diesel_internal_rhs) - } - } - impl diesel::query_source::AppearsInFromClause< - diesel::query_builder::Only, - > for meta_link_id { - type Count = diesel::query_source::Once; - } - impl diesel::SelectableExpression> - for meta_link_id {} - impl< - TSM, - > diesel::query_source::AppearsInFromClause< - diesel::query_builder::Tablesample, - > for meta_link_id - where - TSM: diesel::internal::table_macro::TablesampleMethod, - { - type Count = diesel::query_source::Once; - } - impl< - TSM, - > diesel::SelectableExpression< - diesel::query_builder::Tablesample, - > for meta_link_id - where - TSM: diesel::internal::table_macro::TablesampleMethod, - {} - #[allow(non_camel_case_types, dead_code)] - pub struct language; - #[automatically_derived] - #[allow(non_camel_case_types, dead_code)] - impl ::core::fmt::Debug for language { - #[inline] - fn fmt(&self, f: &mut ::core::fmt::Formatter) -> ::core::fmt::Result { - ::core::fmt::Formatter::write_str(f, "language") - } - } - #[automatically_derived] - #[allow(non_camel_case_types, dead_code)] - impl ::core::clone::Clone for language { - #[inline] - fn clone(&self) -> language { - *self - } - } - #[automatically_derived] - #[allow(non_camel_case_types, dead_code)] - impl ::core::marker::Copy for language {} - #[allow(unused_imports)] - const _: () = { - use diesel; - use diesel::query_builder::QueryId; - #[allow(non_camel_case_types)] - impl QueryId for language { - type QueryId = language; - const HAS_STATIC_QUERY_ID: bool = true; - } - }; - #[automatically_derived] - #[allow(non_camel_case_types, dead_code)] - impl ::core::default::Default for language { - #[inline] - fn default() -> language { - language {} - } - } - impl diesel::expression::Expression for language { - type SqlType = Bpchar; - } - impl diesel::query_builder::QueryFragment for language - where - DB: diesel::backend::Backend, - diesel::internal::table_macro::StaticQueryFragmentInstance< - table, - >: diesel::query_builder::QueryFragment, - { - #[allow(non_snake_case)] - fn walk_ast<'b>( - &'b self, - mut __diesel_internal_out: diesel::query_builder::AstPass<'_, 'b, DB>, - ) -> diesel::result::QueryResult<()> { - if !__diesel_internal_out.should_skip_from() { - const FROM_CLAUSE: diesel::internal::table_macro::StaticQueryFragmentInstance< - table, - > = diesel::internal::table_macro::StaticQueryFragmentInstance::new(); - FROM_CLAUSE.walk_ast(__diesel_internal_out.reborrow())?; - __diesel_internal_out.push_sql("."); - } - __diesel_internal_out.push_identifier("language") - } - } - impl diesel::SelectableExpression for language {} - impl diesel::AppearsOnTable for language - where - QS: diesel::query_source::AppearsInFromClause< - super::table, - Count = diesel::query_source::Once, - >, - {} - impl< - Left, - Right, - > diesel::SelectableExpression< - diesel::internal::table_macro::Join< - Left, - Right, - diesel::internal::table_macro::LeftOuter, - >, - > for language - where - language: diesel::AppearsOnTable< - diesel::internal::table_macro::Join< - Left, - Right, - diesel::internal::table_macro::LeftOuter, - >, - >, - Self: diesel::SelectableExpression, - Right: diesel::query_source::AppearsInFromClause< - super::table, - Count = diesel::query_source::Never, - > + diesel::query_source::QuerySource, - Left: diesel::query_source::QuerySource, - {} - impl< - Left, - Right, - > diesel::SelectableExpression< - diesel::internal::table_macro::Join< - Left, - Right, - diesel::internal::table_macro::Inner, - >, - > for language - where - language: diesel::AppearsOnTable< - diesel::internal::table_macro::Join< - Left, - Right, - diesel::internal::table_macro::Inner, - >, - >, - Left: diesel::query_source::AppearsInFromClause - + diesel::query_source::QuerySource, - Right: diesel::query_source::AppearsInFromClause - + diesel::query_source::QuerySource, - ( - Left::Count, - Right::Count, - ): diesel::internal::table_macro::Pick, - Self: diesel::SelectableExpression< - <( - Left::Count, - Right::Count, - ) as diesel::internal::table_macro::Pick>::Selection, - >, - {} - impl< - Join, - On, - > diesel::SelectableExpression< - diesel::internal::table_macro::JoinOn, - > for language - where - language: diesel::SelectableExpression - + diesel::AppearsOnTable< - diesel::internal::table_macro::JoinOn, - >, - {} - impl< - From, - > diesel::SelectableExpression< - diesel::internal::table_macro::SelectStatement< - diesel::internal::table_macro::FromClause, - >, - > for language - where - From: diesel::query_source::QuerySource, - language: diesel::SelectableExpression - + diesel::AppearsOnTable< - diesel::internal::table_macro::SelectStatement< - diesel::internal::table_macro::FromClause, - >, - >, - {} - impl<__GB> diesel::expression::ValidGrouping<__GB> for language - where - __GB: diesel::expression::IsContainedInGroupBy< - language, - Output = diesel::expression::is_contained_in_group_by::Yes, - >, - { - type IsAggregate = diesel::expression::is_aggregate::Yes; - } - impl diesel::expression::ValidGrouping<()> for language { - type IsAggregate = diesel::expression::is_aggregate::No; - } - impl diesel::expression::IsContainedInGroupBy for language { - type Output = diesel::expression::is_contained_in_group_by::Yes; - } - impl diesel::query_source::Column for language { - type Table = super::table; - const NAME: &'static str = "language"; - } - impl diesel::EqAll for language - where - T: diesel::expression::AsExpression, - diesel::dsl::Eq< - language, - T::Expression, - >: diesel::Expression, - { - type Output = diesel::dsl::Eq; - fn eq_all(self, __diesel_internal_rhs: T) -> Self::Output { - use diesel::expression_methods::ExpressionMethods; - self.eq(__diesel_internal_rhs) - } - } - impl diesel::query_source::AppearsInFromClause< - diesel::query_builder::Only, - > for language { - type Count = diesel::query_source::Once; - } - impl diesel::SelectableExpression> - for language {} - impl< - TSM, - > diesel::query_source::AppearsInFromClause< - diesel::query_builder::Tablesample, - > for language - where - TSM: diesel::internal::table_macro::TablesampleMethod, - { - type Count = diesel::query_source::Once; - } - impl< - TSM, - > diesel::SelectableExpression< - diesel::query_builder::Tablesample, - > for language - where - TSM: diesel::internal::table_macro::TablesampleMethod, - {} - #[allow(non_camel_case_types, dead_code)] - pub struct value; - #[automatically_derived] - #[allow(non_camel_case_types, dead_code)] - impl ::core::fmt::Debug for value { - #[inline] - fn fmt(&self, f: &mut ::core::fmt::Formatter) -> ::core::fmt::Result { - ::core::fmt::Formatter::write_str(f, "value") - } - } - #[automatically_derived] - #[allow(non_camel_case_types, dead_code)] - impl ::core::clone::Clone for value { - #[inline] - fn clone(&self) -> value { - *self - } - } - #[automatically_derived] - #[allow(non_camel_case_types, dead_code)] - impl ::core::marker::Copy for value {} - #[allow(unused_imports)] - const _: () = { - use diesel; - use diesel::query_builder::QueryId; - #[allow(non_camel_case_types)] - impl QueryId for value { - type QueryId = value; - const HAS_STATIC_QUERY_ID: bool = true; - } - }; - #[automatically_derived] - #[allow(non_camel_case_types, dead_code)] - impl ::core::default::Default for value { - #[inline] - fn default() -> value { - value {} - } - } - impl diesel::expression::Expression for value { - type SqlType = Bpchar; - } - impl diesel::query_builder::QueryFragment for value - where - DB: diesel::backend::Backend, - diesel::internal::table_macro::StaticQueryFragmentInstance< - table, - >: diesel::query_builder::QueryFragment, - { - #[allow(non_snake_case)] - fn walk_ast<'b>( - &'b self, - mut __diesel_internal_out: diesel::query_builder::AstPass<'_, 'b, DB>, - ) -> diesel::result::QueryResult<()> { - if !__diesel_internal_out.should_skip_from() { - const FROM_CLAUSE: diesel::internal::table_macro::StaticQueryFragmentInstance< - table, - > = diesel::internal::table_macro::StaticQueryFragmentInstance::new(); - FROM_CLAUSE.walk_ast(__diesel_internal_out.reborrow())?; - __diesel_internal_out.push_sql("."); - } - __diesel_internal_out.push_identifier("value") - } - } - impl diesel::SelectableExpression for value {} - impl diesel::AppearsOnTable for value - where - QS: diesel::query_source::AppearsInFromClause< - super::table, - Count = diesel::query_source::Once, - >, - {} - impl< - Left, - Right, - > diesel::SelectableExpression< - diesel::internal::table_macro::Join< - Left, - Right, - diesel::internal::table_macro::LeftOuter, - >, - > for value - where - value: diesel::AppearsOnTable< - diesel::internal::table_macro::Join< - Left, - Right, - diesel::internal::table_macro::LeftOuter, - >, - >, - Self: diesel::SelectableExpression, - Right: diesel::query_source::AppearsInFromClause< - super::table, - Count = diesel::query_source::Never, - > + diesel::query_source::QuerySource, - Left: diesel::query_source::QuerySource, - {} - impl< - Left, - Right, - > diesel::SelectableExpression< - diesel::internal::table_macro::Join< - Left, - Right, - diesel::internal::table_macro::Inner, - >, - > for value - where - value: diesel::AppearsOnTable< - diesel::internal::table_macro::Join< - Left, - Right, - diesel::internal::table_macro::Inner, - >, - >, - Left: diesel::query_source::AppearsInFromClause - + diesel::query_source::QuerySource, - Right: diesel::query_source::AppearsInFromClause - + diesel::query_source::QuerySource, - ( - Left::Count, - Right::Count, - ): diesel::internal::table_macro::Pick, - Self: diesel::SelectableExpression< - <( - Left::Count, - Right::Count, - ) as diesel::internal::table_macro::Pick>::Selection, - >, - {} - impl< - Join, - On, - > diesel::SelectableExpression< - diesel::internal::table_macro::JoinOn, - > for value - where - value: diesel::SelectableExpression - + diesel::AppearsOnTable< - diesel::internal::table_macro::JoinOn, - >, - {} - impl< - From, - > diesel::SelectableExpression< - diesel::internal::table_macro::SelectStatement< - diesel::internal::table_macro::FromClause, - >, - > for value - where - From: diesel::query_source::QuerySource, - value: diesel::SelectableExpression - + diesel::AppearsOnTable< - diesel::internal::table_macro::SelectStatement< - diesel::internal::table_macro::FromClause, - >, - >, - {} - impl<__GB> diesel::expression::ValidGrouping<__GB> for value - where - __GB: diesel::expression::IsContainedInGroupBy< - value, - Output = diesel::expression::is_contained_in_group_by::Yes, - >, - { - type IsAggregate = diesel::expression::is_aggregate::Yes; - } - impl diesel::expression::ValidGrouping<()> for value { - type IsAggregate = diesel::expression::is_aggregate::No; - } - impl diesel::expression::IsContainedInGroupBy for value { - type Output = diesel::expression::is_contained_in_group_by::Yes; - } - impl diesel::query_source::Column for value { - type Table = super::table; - const NAME: &'static str = "value"; - } - impl diesel::EqAll for value - where - T: diesel::expression::AsExpression, - diesel::dsl::Eq< - value, - T::Expression, - >: diesel::Expression, - { - type Output = diesel::dsl::Eq; - fn eq_all(self, __diesel_internal_rhs: T) -> Self::Output { - use diesel::expression_methods::ExpressionMethods; - self.eq(__diesel_internal_rhs) - } - } - impl diesel::query_source::AppearsInFromClause< - diesel::query_builder::Only, - > for value { - type Count = diesel::query_source::Once; - } - impl diesel::SelectableExpression> - for value {} - impl< - TSM, - > diesel::query_source::AppearsInFromClause< - diesel::query_builder::Tablesample, - > for value - where - TSM: diesel::internal::table_macro::TablesampleMethod, - { - type Count = diesel::query_source::Once; - } - impl< - TSM, - > diesel::SelectableExpression< - diesel::query_builder::Tablesample, - > for value - where - TSM: diesel::internal::table_macro::TablesampleMethod, - {} - impl diesel::expression::IsContainedInGroupBy for meta_link_id { - type Output = diesel::expression::is_contained_in_group_by::No; - } - impl diesel::expression::IsContainedInGroupBy for id { - type Output = diesel::expression::is_contained_in_group_by::Yes; - } - impl diesel::expression::IsContainedInGroupBy for language { - type Output = diesel::expression::is_contained_in_group_by::No; - } - impl diesel::expression::IsContainedInGroupBy for id { - type Output = diesel::expression::is_contained_in_group_by::Yes; - } - impl diesel::expression::IsContainedInGroupBy for value { - type Output = diesel::expression::is_contained_in_group_by::No; - } - impl diesel::expression::IsContainedInGroupBy for id { - type Output = diesel::expression::is_contained_in_group_by::Yes; - } - impl diesel::expression::IsContainedInGroupBy for language { - type Output = diesel::expression::is_contained_in_group_by::No; - } - impl diesel::expression::IsContainedInGroupBy for meta_link_id { - type Output = diesel::expression::is_contained_in_group_by::No; - } - impl diesel::expression::IsContainedInGroupBy for value { - type Output = diesel::expression::is_contained_in_group_by::No; - } - impl diesel::expression::IsContainedInGroupBy for meta_link_id { - type Output = diesel::expression::is_contained_in_group_by::No; - } - impl diesel::expression::IsContainedInGroupBy for value { - type Output = diesel::expression::is_contained_in_group_by::No; - } - impl diesel::expression::IsContainedInGroupBy for language { - type Output = diesel::expression::is_contained_in_group_by::No; - } - } - } - #[allow(unused_imports, dead_code, unreachable_pub, unused_qualifications)] - pub mod meta_links { - use ::diesel; - pub use self::columns::*; - use diesel::sql_types::*; - /// Re-exports all of the columns of this table, as well as the - /// table struct renamed to the module name. This is meant to be - /// glob imported for functions which only deal with one table. - pub mod dsl { - pub use super::columns::id; - pub use super::columns::document; - pub use super::columns::pattern; - pub use super::columns::rel; - pub use super::columns::type_; - pub use super::columns::href; - pub use super::columns::template; - pub use super::table as meta_links; - } - #[allow(non_upper_case_globals, dead_code)] - /// A tuple of all of the columns on this table - pub const all_columns: (id, document, pattern, rel, type_, href, template) = ( - id, - document, - pattern, - rel, - type_, - href, - template, - ); - #[allow(non_camel_case_types)] - /// The actual table struct - /// - /// This is the type which provides the base methods of the query - /// builder, such as `.select` and `.filter`. - pub struct table; - #[automatically_derived] - #[allow(non_camel_case_types)] - impl ::core::fmt::Debug for table { - #[inline] - fn fmt(&self, f: &mut ::core::fmt::Formatter) -> ::core::fmt::Result { - ::core::fmt::Formatter::write_str(f, "table") - } - } - #[automatically_derived] - #[allow(non_camel_case_types)] - impl ::core::clone::Clone for table { - #[inline] - fn clone(&self) -> table { - *self - } - } - #[automatically_derived] - #[allow(non_camel_case_types)] - impl ::core::marker::Copy for table {} - #[allow(unused_imports)] - const _: () = { - use diesel; - use diesel::query_builder::QueryId; - #[allow(non_camel_case_types)] - impl QueryId for table { - type QueryId = table; - const HAS_STATIC_QUERY_ID: bool = true; - } - }; - #[automatically_derived] - #[allow(non_camel_case_types)] - impl ::core::default::Default for table { - #[inline] - fn default() -> table { - table {} - } - } - impl table { - #[allow(dead_code)] - /// Represents `table_name.*`, which is sometimes necessary - /// for efficient count queries. It cannot be used in place of - /// `all_columns` - pub fn star(&self) -> star { - star - } - } - /// The SQL type of all of the columns on this table - pub type SqlType = ( - Uuid, - Bpchar, - Bpchar, - Bpchar, - Nullable, - Nullable, - Nullable, - ); - /// Helper type for representing a boxed query from this table - pub type BoxedQuery<'a, DB, ST = SqlType> = diesel::internal::table_macro::BoxedSelectStatement< - 'a, - ST, - diesel::internal::table_macro::FromClause
, - DB, - >; - impl diesel::QuerySource for table { - type FromClause = diesel::internal::table_macro::StaticQueryFragmentInstance< - table, - >; - type DefaultSelection = ::AllColumns; - fn from_clause(&self) -> Self::FromClause { - diesel::internal::table_macro::StaticQueryFragmentInstance::new() - } - fn default_selection(&self) -> Self::DefaultSelection { - use diesel::Table; - Self::all_columns() - } - } - impl diesel::query_builder::QueryFragment for table - where - DB: diesel::backend::Backend, -
::Component: diesel::query_builder::QueryFragment< - DB, - >, - { - fn walk_ast<'b>( - &'b self, - __diesel_internal_pass: diesel::query_builder::AstPass<'_, 'b, DB>, - ) -> diesel::result::QueryResult<()> { -
::STATIC_COMPONENT - .walk_ast(__diesel_internal_pass) - } - } - impl diesel::internal::table_macro::StaticQueryFragment for table { - type Component = diesel::internal::table_macro::Identifier<'static>; - const STATIC_COMPONENT: &'static Self::Component = &diesel::internal::table_macro::Identifier( - "meta_links", - ); - } - impl diesel::query_builder::AsQuery for table { - type SqlType = SqlType; - type Query = diesel::internal::table_macro::SelectStatement< - diesel::internal::table_macro::FromClause, - >; - fn as_query(self) -> Self::Query { - diesel::internal::table_macro::SelectStatement::simple(self) - } - } - impl diesel::Table for table { - type PrimaryKey = id; - type AllColumns = (id, document, pattern, rel, type_, href, template); - fn primary_key(&self) -> Self::PrimaryKey { - id - } - fn all_columns() -> Self::AllColumns { - (id, document, pattern, rel, type_, href, template) - } - } - impl diesel::associations::HasTable for table { - type Table = Self; - fn table() -> Self::Table { - table - } - } - impl diesel::query_builder::IntoUpdateTarget for table { - type WhereClause = <::Query as diesel::query_builder::IntoUpdateTarget>::WhereClause; - fn into_update_target( - self, - ) -> diesel::query_builder::UpdateTarget { - use diesel::query_builder::AsQuery; - let q: diesel::internal::table_macro::SelectStatement< - diesel::internal::table_macro::FromClause
, - > = self.as_query(); - q.into_update_target() - } - } - impl diesel::query_source::AppearsInFromClause
for table { - type Count = diesel::query_source::Once; - } - impl diesel::internal::table_macro::AliasAppearsInFromClause - for table - where - S: diesel::query_source::AliasSource, - { - type Count = diesel::query_source::Never; - } - impl< - S1, - S2, - > diesel::internal::table_macro::AliasAliasAppearsInFromClause - for table - where - S1: diesel::query_source::AliasSource, - S2: diesel::query_source::AliasSource, - S1: diesel::internal::table_macro::AliasAliasAppearsInFromClauseSameTable< - S2, - table, - >, - { - type Count = >::Count; - } - impl diesel::query_source::AppearsInFromClause> - for table - where - S: diesel::query_source::AliasSource, - { - type Count = diesel::query_source::Never; - } - impl< - S, - C, - > diesel::internal::table_macro::FieldAliasMapperAssociatedTypesDisjointnessTrick< - table, - S, - C, - > for table - where - S: diesel::query_source::AliasSource + ::std::clone::Clone, - C: diesel::query_source::Column
, - { - type Out = diesel::query_source::AliasedField; - fn map( - __diesel_internal_column: C, - __diesel_internal_alias: &diesel::query_source::Alias, - ) -> Self::Out { - __diesel_internal_alias.field(__diesel_internal_column) - } - } - impl diesel::query_source::AppearsInFromClause
- for diesel::internal::table_macro::NoFromClause { - type Count = diesel::query_source::Never; - } - impl< - Left, - Right, - Kind, - > diesel::JoinTo> - for table - where - diesel::internal::table_macro::Join< - Left, - Right, - Kind, - >: diesel::JoinTo
, - Left: diesel::query_source::QuerySource, - Right: diesel::query_source::QuerySource, - { - type FromClause = diesel::internal::table_macro::Join; - type OnClause = as diesel::JoinTo
>::OnClause; - fn join_target( - __diesel_internal_rhs: diesel::internal::table_macro::Join< - Left, - Right, - Kind, - >, - ) -> (Self::FromClause, Self::OnClause) { - let (_, __diesel_internal_on_clause) = diesel::internal::table_macro::Join::join_target( - table, - ); - (__diesel_internal_rhs, __diesel_internal_on_clause) - } - } - impl diesel::JoinTo> - for table - where - diesel::internal::table_macro::JoinOn: diesel::JoinTo
, - { - type FromClause = diesel::internal::table_macro::JoinOn; - type OnClause = as diesel::JoinTo
>::OnClause; - fn join_target( - __diesel_internal_rhs: diesel::internal::table_macro::JoinOn, - ) -> (Self::FromClause, Self::OnClause) { - let (_, __diesel_internal_on_clause) = diesel::internal::table_macro::JoinOn::join_target( - table, - ); - (__diesel_internal_rhs, __diesel_internal_on_clause) - } - } - impl< - F, - S, - D, - W, - O, - L, - Of, - G, - > diesel::JoinTo< - diesel::internal::table_macro::SelectStatement< - diesel::internal::table_macro::FromClause, - S, - D, - W, - O, - L, - Of, - G, - >, - > for table - where - diesel::internal::table_macro::SelectStatement< - diesel::internal::table_macro::FromClause, - S, - D, - W, - O, - L, - Of, - G, - >: diesel::JoinTo
, - F: diesel::query_source::QuerySource, - { - type FromClause = diesel::internal::table_macro::SelectStatement< - diesel::internal::table_macro::FromClause, - S, - D, - W, - O, - L, - Of, - G, - >; - type OnClause = , - S, - D, - W, - O, - L, - Of, - G, - > as diesel::JoinTo
>::OnClause; - fn join_target( - __diesel_internal_rhs: diesel::internal::table_macro::SelectStatement< - diesel::internal::table_macro::FromClause, - S, - D, - W, - O, - L, - Of, - G, - >, - ) -> (Self::FromClause, Self::OnClause) { - let (_, __diesel_internal_on_clause) = diesel::internal::table_macro::SelectStatement::join_target( - table, - ); - (__diesel_internal_rhs, __diesel_internal_on_clause) - } - } - impl< - 'a, - QS, - ST, - DB, - > diesel::JoinTo< - diesel::internal::table_macro::BoxedSelectStatement< - 'a, - diesel::internal::table_macro::FromClause, - ST, - DB, - >, - > for table - where - diesel::internal::table_macro::BoxedSelectStatement< - 'a, - diesel::internal::table_macro::FromClause, - ST, - DB, - >: diesel::JoinTo
, - QS: diesel::query_source::QuerySource, - { - type FromClause = diesel::internal::table_macro::BoxedSelectStatement< - 'a, - diesel::internal::table_macro::FromClause, - ST, - DB, - >; - type OnClause = , - ST, - DB, - > as diesel::JoinTo
>::OnClause; - fn join_target( - __diesel_internal_rhs: diesel::internal::table_macro::BoxedSelectStatement< - 'a, - diesel::internal::table_macro::FromClause, - ST, - DB, - >, - ) -> (Self::FromClause, Self::OnClause) { - let (_, __diesel_internal_on_clause) = diesel::internal::table_macro::BoxedSelectStatement::join_target( - table, - ); - (__diesel_internal_rhs, __diesel_internal_on_clause) - } - } - impl diesel::JoinTo> for table - where - diesel::query_source::Alias: diesel::JoinTo
, - { - type FromClause = diesel::query_source::Alias; - type OnClause = as diesel::JoinTo
>::OnClause; - fn join_target( - __diesel_internal_rhs: diesel::query_source::Alias, - ) -> (Self::FromClause, Self::OnClause) { - let (_, __diesel_internal_on_clause) = diesel::query_source::Alias::< - S, - >::join_target(table); - (__diesel_internal_rhs, __diesel_internal_on_clause) - } - } - impl diesel::insertable::Insertable for table - where -
::Query: diesel::insertable::Insertable< - T, - >, - { - type Values = <
::Query as diesel::insertable::Insertable< - T, - >>::Values; - fn values(self) -> Self::Values { - use diesel::query_builder::AsQuery; - self.as_query().values() - } - } - impl<'a, T> diesel::insertable::Insertable for &'a table - where - table: diesel::insertable::Insertable, - { - type Values =
>::Values; - fn values(self) -> Self::Values { - (*self).values() - } - } - impl diesel::JoinTo> for table - where - diesel::query_builder::Only: diesel::JoinTo
, - { - type FromClause = diesel::query_builder::Only; - type OnClause = as diesel::JoinTo
>::OnClause; - fn join_target( - __diesel_internal_rhs: diesel::query_builder::Only, - ) -> (Self::FromClause, Self::OnClause) { - let (_, __diesel_internal_on_clause) = diesel::query_builder::Only::< - S, - >::join_target(table); - (__diesel_internal_rhs, __diesel_internal_on_clause) - } - } - impl diesel::query_source::AppearsInFromClause< - diesel::query_builder::Only
, - > for table { - type Count = diesel::query_source::Once; - } - impl diesel::query_source::AppearsInFromClause
- for diesel::query_builder::Only
{ - type Count = diesel::query_source::Once; - } - impl diesel::JoinTo> for table - where - diesel::query_builder::Tablesample: diesel::JoinTo
, - TSM: diesel::internal::table_macro::TablesampleMethod, - { - type FromClause = diesel::query_builder::Tablesample; - type OnClause = as diesel::JoinTo
>::OnClause; - fn join_target( - __diesel_internal_rhs: diesel::query_builder::Tablesample, - ) -> (Self::FromClause, Self::OnClause) { - let (_, __diesel_internal_on_clause) = diesel::query_builder::Tablesample::< - S, - TSM, - >::join_target(table); - (__diesel_internal_rhs, __diesel_internal_on_clause) - } - } - impl< - TSM, - > diesel::query_source::AppearsInFromClause< - diesel::query_builder::Tablesample, - > for table - where - TSM: diesel::internal::table_macro::TablesampleMethod, - { - type Count = diesel::query_source::Once; - } - impl diesel::query_source::AppearsInFromClause
- for diesel::query_builder::Tablesample - where - TSM: diesel::internal::table_macro::TablesampleMethod, - { - type Count = diesel::query_source::Once; - } - /// Contains all of the columns of this table - pub mod columns { - use ::diesel; - use super::table; - use diesel::sql_types::*; - #[allow(non_camel_case_types, dead_code)] - /// Represents `table_name.*`, which is sometimes needed for - /// efficient count queries. It cannot be used in place of - /// `all_columns`, and has a `SqlType` of `()` to prevent it - /// being used that way - pub struct star; - #[automatically_derived] - #[allow(non_camel_case_types, dead_code)] - impl ::core::fmt::Debug for star { - #[inline] - fn fmt(&self, f: &mut ::core::fmt::Formatter) -> ::core::fmt::Result { - ::core::fmt::Formatter::write_str(f, "star") - } - } - #[automatically_derived] - #[allow(non_camel_case_types, dead_code)] - impl ::core::clone::Clone for star { - #[inline] - fn clone(&self) -> star { - *self - } - } - #[automatically_derived] - #[allow(non_camel_case_types, dead_code)] - impl ::core::marker::Copy for star {} - #[allow(unused_imports)] - const _: () = { - use diesel; - use diesel::query_builder::QueryId; - #[allow(non_camel_case_types)] - impl QueryId for star { - type QueryId = star; - const HAS_STATIC_QUERY_ID: bool = true; - } - }; - impl<__GB> diesel::expression::ValidGrouping<__GB> for star - where - ( - id, - document, - pattern, - rel, - type_, - href, - template, - ): diesel::expression::ValidGrouping<__GB>, - { - type IsAggregate = <( - id, - document, - pattern, - rel, - type_, - href, - template, - ) as diesel::expression::ValidGrouping<__GB>>::IsAggregate; - } - impl diesel::Expression for star { - type SqlType = diesel::expression::expression_types::NotSelectable; - } - impl diesel::query_builder::QueryFragment - for star - where -
::FromClause: diesel::query_builder::QueryFragment< - DB, - >, - { - #[allow(non_snake_case)] - fn walk_ast<'b>( - &'b self, - mut __diesel_internal_out: diesel::query_builder::AstPass<'_, 'b, DB>, - ) -> diesel::result::QueryResult<()> { - use diesel::QuerySource; - if !__diesel_internal_out.should_skip_from() { - const FROM_CLAUSE: diesel::internal::table_macro::StaticQueryFragmentInstance< - table, - > = diesel::internal::table_macro::StaticQueryFragmentInstance::new(); - FROM_CLAUSE.walk_ast(__diesel_internal_out.reborrow())?; - __diesel_internal_out.push_sql("."); - } - __diesel_internal_out.push_sql("*"); - Ok(()) - } - } - impl diesel::SelectableExpression
for star {} - impl diesel::AppearsOnTable
for star {} - #[allow(non_camel_case_types, dead_code)] - pub struct id; - #[automatically_derived] - #[allow(non_camel_case_types, dead_code)] - impl ::core::fmt::Debug for id { - #[inline] - fn fmt(&self, f: &mut ::core::fmt::Formatter) -> ::core::fmt::Result { - ::core::fmt::Formatter::write_str(f, "id") - } - } - #[automatically_derived] - #[allow(non_camel_case_types, dead_code)] - impl ::core::clone::Clone for id { - #[inline] - fn clone(&self) -> id { - *self - } - } - #[automatically_derived] - #[allow(non_camel_case_types, dead_code)] - impl ::core::marker::Copy for id {} - #[allow(unused_imports)] - const _: () = { - use diesel; - use diesel::query_builder::QueryId; - #[allow(non_camel_case_types)] - impl QueryId for id { - type QueryId = id; - const HAS_STATIC_QUERY_ID: bool = true; - } - }; - #[automatically_derived] - #[allow(non_camel_case_types, dead_code)] - impl ::core::default::Default for id { - #[inline] - fn default() -> id { - id {} - } - } - impl diesel::expression::Expression for id { - type SqlType = Uuid; - } - impl diesel::query_builder::QueryFragment for id - where - DB: diesel::backend::Backend, - diesel::internal::table_macro::StaticQueryFragmentInstance< - table, - >: diesel::query_builder::QueryFragment, - { - #[allow(non_snake_case)] - fn walk_ast<'b>( - &'b self, - mut __diesel_internal_out: diesel::query_builder::AstPass<'_, 'b, DB>, - ) -> diesel::result::QueryResult<()> { - if !__diesel_internal_out.should_skip_from() { - const FROM_CLAUSE: diesel::internal::table_macro::StaticQueryFragmentInstance< - table, - > = diesel::internal::table_macro::StaticQueryFragmentInstance::new(); - FROM_CLAUSE.walk_ast(__diesel_internal_out.reborrow())?; - __diesel_internal_out.push_sql("."); - } - __diesel_internal_out.push_identifier("id") - } - } - impl diesel::SelectableExpression for id {} - impl diesel::AppearsOnTable for id - where - QS: diesel::query_source::AppearsInFromClause< - super::table, - Count = diesel::query_source::Once, - >, - {} - impl< - Left, - Right, - > diesel::SelectableExpression< - diesel::internal::table_macro::Join< - Left, - Right, - diesel::internal::table_macro::LeftOuter, - >, - > for id - where - id: diesel::AppearsOnTable< - diesel::internal::table_macro::Join< - Left, - Right, - diesel::internal::table_macro::LeftOuter, - >, - >, - Self: diesel::SelectableExpression, - Right: diesel::query_source::AppearsInFromClause< - super::table, - Count = diesel::query_source::Never, - > + diesel::query_source::QuerySource, - Left: diesel::query_source::QuerySource, - {} - impl< - Left, - Right, - > diesel::SelectableExpression< - diesel::internal::table_macro::Join< - Left, - Right, - diesel::internal::table_macro::Inner, - >, - > for id - where - id: diesel::AppearsOnTable< - diesel::internal::table_macro::Join< - Left, - Right, - diesel::internal::table_macro::Inner, - >, - >, - Left: diesel::query_source::AppearsInFromClause - + diesel::query_source::QuerySource, - Right: diesel::query_source::AppearsInFromClause - + diesel::query_source::QuerySource, - ( - Left::Count, - Right::Count, - ): diesel::internal::table_macro::Pick, - Self: diesel::SelectableExpression< - <( - Left::Count, - Right::Count, - ) as diesel::internal::table_macro::Pick>::Selection, - >, - {} - impl< - Join, - On, - > diesel::SelectableExpression< - diesel::internal::table_macro::JoinOn, - > for id - where - id: diesel::SelectableExpression - + diesel::AppearsOnTable< - diesel::internal::table_macro::JoinOn, - >, - {} - impl< - From, - > diesel::SelectableExpression< - diesel::internal::table_macro::SelectStatement< - diesel::internal::table_macro::FromClause, - >, - > for id - where - From: diesel::query_source::QuerySource, - id: diesel::SelectableExpression - + diesel::AppearsOnTable< - diesel::internal::table_macro::SelectStatement< - diesel::internal::table_macro::FromClause, - >, - >, - {} - impl<__GB> diesel::expression::ValidGrouping<__GB> for id - where - __GB: diesel::expression::IsContainedInGroupBy< - id, - Output = diesel::expression::is_contained_in_group_by::Yes, - >, - { - type IsAggregate = diesel::expression::is_aggregate::Yes; - } - impl diesel::expression::ValidGrouping<()> for id { - type IsAggregate = diesel::expression::is_aggregate::No; - } - impl diesel::expression::IsContainedInGroupBy for id { - type Output = diesel::expression::is_contained_in_group_by::Yes; - } - impl diesel::query_source::Column for id { - type Table = super::table; - const NAME: &'static str = "id"; - } - impl diesel::EqAll for id - where - T: diesel::expression::AsExpression, - diesel::dsl::Eq< - id, - T::Expression, - >: diesel::Expression, - { - type Output = diesel::dsl::Eq; - fn eq_all(self, __diesel_internal_rhs: T) -> Self::Output { - use diesel::expression_methods::ExpressionMethods; - self.eq(__diesel_internal_rhs) - } - } - impl diesel::query_source::AppearsInFromClause< - diesel::query_builder::Only, - > for id { - type Count = diesel::query_source::Once; - } - impl diesel::SelectableExpression> - for id {} - impl< - TSM, - > diesel::query_source::AppearsInFromClause< - diesel::query_builder::Tablesample, - > for id - where - TSM: diesel::internal::table_macro::TablesampleMethod, - { - type Count = diesel::query_source::Once; - } - impl< - TSM, - > diesel::SelectableExpression< - diesel::query_builder::Tablesample, - > for id - where - TSM: diesel::internal::table_macro::TablesampleMethod, - {} - #[allow(non_camel_case_types, dead_code)] - pub struct document; - #[automatically_derived] - #[allow(non_camel_case_types, dead_code)] - impl ::core::fmt::Debug for document { - #[inline] - fn fmt(&self, f: &mut ::core::fmt::Formatter) -> ::core::fmt::Result { - ::core::fmt::Formatter::write_str(f, "document") - } - } - #[automatically_derived] - #[allow(non_camel_case_types, dead_code)] - impl ::core::clone::Clone for document { - #[inline] - fn clone(&self) -> document { - *self - } - } - #[automatically_derived] - #[allow(non_camel_case_types, dead_code)] - impl ::core::marker::Copy for document {} - #[allow(unused_imports)] - const _: () = { - use diesel; - use diesel::query_builder::QueryId; - #[allow(non_camel_case_types)] - impl QueryId for document { - type QueryId = document; - const HAS_STATIC_QUERY_ID: bool = true; - } - }; - #[automatically_derived] - #[allow(non_camel_case_types, dead_code)] - impl ::core::default::Default for document { - #[inline] - fn default() -> document { - document {} - } - } - impl diesel::expression::Expression for document { - type SqlType = Bpchar; - } - impl diesel::query_builder::QueryFragment for document - where - DB: diesel::backend::Backend, - diesel::internal::table_macro::StaticQueryFragmentInstance< - table, - >: diesel::query_builder::QueryFragment, - { - #[allow(non_snake_case)] - fn walk_ast<'b>( - &'b self, - mut __diesel_internal_out: diesel::query_builder::AstPass<'_, 'b, DB>, - ) -> diesel::result::QueryResult<()> { - if !__diesel_internal_out.should_skip_from() { - const FROM_CLAUSE: diesel::internal::table_macro::StaticQueryFragmentInstance< - table, - > = diesel::internal::table_macro::StaticQueryFragmentInstance::new(); - FROM_CLAUSE.walk_ast(__diesel_internal_out.reborrow())?; - __diesel_internal_out.push_sql("."); - } - __diesel_internal_out.push_identifier("document") - } - } - impl diesel::SelectableExpression for document {} - impl diesel::AppearsOnTable for document - where - QS: diesel::query_source::AppearsInFromClause< - super::table, - Count = diesel::query_source::Once, - >, - {} - impl< - Left, - Right, - > diesel::SelectableExpression< - diesel::internal::table_macro::Join< - Left, - Right, - diesel::internal::table_macro::LeftOuter, - >, - > for document - where - document: diesel::AppearsOnTable< - diesel::internal::table_macro::Join< - Left, - Right, - diesel::internal::table_macro::LeftOuter, - >, - >, - Self: diesel::SelectableExpression, - Right: diesel::query_source::AppearsInFromClause< - super::table, - Count = diesel::query_source::Never, - > + diesel::query_source::QuerySource, - Left: diesel::query_source::QuerySource, - {} - impl< - Left, - Right, - > diesel::SelectableExpression< - diesel::internal::table_macro::Join< - Left, - Right, - diesel::internal::table_macro::Inner, - >, - > for document - where - document: diesel::AppearsOnTable< - diesel::internal::table_macro::Join< - Left, - Right, - diesel::internal::table_macro::Inner, - >, - >, - Left: diesel::query_source::AppearsInFromClause - + diesel::query_source::QuerySource, - Right: diesel::query_source::AppearsInFromClause - + diesel::query_source::QuerySource, - ( - Left::Count, - Right::Count, - ): diesel::internal::table_macro::Pick, - Self: diesel::SelectableExpression< - <( - Left::Count, - Right::Count, - ) as diesel::internal::table_macro::Pick>::Selection, - >, - {} - impl< - Join, - On, - > diesel::SelectableExpression< - diesel::internal::table_macro::JoinOn, - > for document - where - document: diesel::SelectableExpression - + diesel::AppearsOnTable< - diesel::internal::table_macro::JoinOn, - >, - {} - impl< - From, - > diesel::SelectableExpression< - diesel::internal::table_macro::SelectStatement< - diesel::internal::table_macro::FromClause, - >, - > for document - where - From: diesel::query_source::QuerySource, - document: diesel::SelectableExpression - + diesel::AppearsOnTable< - diesel::internal::table_macro::SelectStatement< - diesel::internal::table_macro::FromClause, - >, - >, - {} - impl<__GB> diesel::expression::ValidGrouping<__GB> for document - where - __GB: diesel::expression::IsContainedInGroupBy< - document, - Output = diesel::expression::is_contained_in_group_by::Yes, - >, - { - type IsAggregate = diesel::expression::is_aggregate::Yes; - } - impl diesel::expression::ValidGrouping<()> for document { - type IsAggregate = diesel::expression::is_aggregate::No; - } - impl diesel::expression::IsContainedInGroupBy for document { - type Output = diesel::expression::is_contained_in_group_by::Yes; - } - impl diesel::query_source::Column for document { - type Table = super::table; - const NAME: &'static str = "document"; - } - impl diesel::EqAll for document - where - T: diesel::expression::AsExpression, - diesel::dsl::Eq< - document, - T::Expression, - >: diesel::Expression, - { - type Output = diesel::dsl::Eq; - fn eq_all(self, __diesel_internal_rhs: T) -> Self::Output { - use diesel::expression_methods::ExpressionMethods; - self.eq(__diesel_internal_rhs) - } - } - impl diesel::query_source::AppearsInFromClause< - diesel::query_builder::Only, - > for document { - type Count = diesel::query_source::Once; - } - impl diesel::SelectableExpression> - for document {} - impl< - TSM, - > diesel::query_source::AppearsInFromClause< - diesel::query_builder::Tablesample, - > for document - where - TSM: diesel::internal::table_macro::TablesampleMethod, - { - type Count = diesel::query_source::Once; - } - impl< - TSM, - > diesel::SelectableExpression< - diesel::query_builder::Tablesample, - > for document - where - TSM: diesel::internal::table_macro::TablesampleMethod, - {} - #[allow(non_camel_case_types, dead_code)] - pub struct pattern; - #[automatically_derived] - #[allow(non_camel_case_types, dead_code)] - impl ::core::fmt::Debug for pattern { - #[inline] - fn fmt(&self, f: &mut ::core::fmt::Formatter) -> ::core::fmt::Result { - ::core::fmt::Formatter::write_str(f, "pattern") - } - } - #[automatically_derived] - #[allow(non_camel_case_types, dead_code)] - impl ::core::clone::Clone for pattern { - #[inline] - fn clone(&self) -> pattern { - *self - } - } - #[automatically_derived] - #[allow(non_camel_case_types, dead_code)] - impl ::core::marker::Copy for pattern {} - #[allow(unused_imports)] - const _: () = { - use diesel; - use diesel::query_builder::QueryId; - #[allow(non_camel_case_types)] - impl QueryId for pattern { - type QueryId = pattern; - const HAS_STATIC_QUERY_ID: bool = true; - } - }; - #[automatically_derived] - #[allow(non_camel_case_types, dead_code)] - impl ::core::default::Default for pattern { - #[inline] - fn default() -> pattern { - pattern {} - } - } - impl diesel::expression::Expression for pattern { - type SqlType = Bpchar; - } - impl diesel::query_builder::QueryFragment for pattern - where - DB: diesel::backend::Backend, - diesel::internal::table_macro::StaticQueryFragmentInstance< - table, - >: diesel::query_builder::QueryFragment, - { - #[allow(non_snake_case)] - fn walk_ast<'b>( - &'b self, - mut __diesel_internal_out: diesel::query_builder::AstPass<'_, 'b, DB>, - ) -> diesel::result::QueryResult<()> { - if !__diesel_internal_out.should_skip_from() { - const FROM_CLAUSE: diesel::internal::table_macro::StaticQueryFragmentInstance< - table, - > = diesel::internal::table_macro::StaticQueryFragmentInstance::new(); - FROM_CLAUSE.walk_ast(__diesel_internal_out.reborrow())?; - __diesel_internal_out.push_sql("."); - } - __diesel_internal_out.push_identifier("pattern") - } - } - impl diesel::SelectableExpression for pattern {} - impl diesel::AppearsOnTable for pattern - where - QS: diesel::query_source::AppearsInFromClause< - super::table, - Count = diesel::query_source::Once, - >, - {} - impl< - Left, - Right, - > diesel::SelectableExpression< - diesel::internal::table_macro::Join< - Left, - Right, - diesel::internal::table_macro::LeftOuter, - >, - > for pattern - where - pattern: diesel::AppearsOnTable< - diesel::internal::table_macro::Join< - Left, - Right, - diesel::internal::table_macro::LeftOuter, - >, - >, - Self: diesel::SelectableExpression, - Right: diesel::query_source::AppearsInFromClause< - super::table, - Count = diesel::query_source::Never, - > + diesel::query_source::QuerySource, - Left: diesel::query_source::QuerySource, - {} - impl< - Left, - Right, - > diesel::SelectableExpression< - diesel::internal::table_macro::Join< - Left, - Right, - diesel::internal::table_macro::Inner, - >, - > for pattern - where - pattern: diesel::AppearsOnTable< - diesel::internal::table_macro::Join< - Left, - Right, - diesel::internal::table_macro::Inner, - >, - >, - Left: diesel::query_source::AppearsInFromClause - + diesel::query_source::QuerySource, - Right: diesel::query_source::AppearsInFromClause - + diesel::query_source::QuerySource, - ( - Left::Count, - Right::Count, - ): diesel::internal::table_macro::Pick, - Self: diesel::SelectableExpression< - <( - Left::Count, - Right::Count, - ) as diesel::internal::table_macro::Pick>::Selection, - >, - {} - impl< - Join, - On, - > diesel::SelectableExpression< - diesel::internal::table_macro::JoinOn, - > for pattern - where - pattern: diesel::SelectableExpression - + diesel::AppearsOnTable< - diesel::internal::table_macro::JoinOn, - >, - {} - impl< - From, - > diesel::SelectableExpression< - diesel::internal::table_macro::SelectStatement< - diesel::internal::table_macro::FromClause, - >, - > for pattern - where - From: diesel::query_source::QuerySource, - pattern: diesel::SelectableExpression - + diesel::AppearsOnTable< - diesel::internal::table_macro::SelectStatement< - diesel::internal::table_macro::FromClause, - >, - >, - {} - impl<__GB> diesel::expression::ValidGrouping<__GB> for pattern - where - __GB: diesel::expression::IsContainedInGroupBy< - pattern, - Output = diesel::expression::is_contained_in_group_by::Yes, - >, - { - type IsAggregate = diesel::expression::is_aggregate::Yes; - } - impl diesel::expression::ValidGrouping<()> for pattern { - type IsAggregate = diesel::expression::is_aggregate::No; - } - impl diesel::expression::IsContainedInGroupBy for pattern { - type Output = diesel::expression::is_contained_in_group_by::Yes; - } - impl diesel::query_source::Column for pattern { - type Table = super::table; - const NAME: &'static str = "pattern"; - } - impl diesel::EqAll for pattern - where - T: diesel::expression::AsExpression, - diesel::dsl::Eq< - pattern, - T::Expression, - >: diesel::Expression, - { - type Output = diesel::dsl::Eq; - fn eq_all(self, __diesel_internal_rhs: T) -> Self::Output { - use diesel::expression_methods::ExpressionMethods; - self.eq(__diesel_internal_rhs) - } - } - impl diesel::query_source::AppearsInFromClause< - diesel::query_builder::Only, - > for pattern { - type Count = diesel::query_source::Once; - } - impl diesel::SelectableExpression> - for pattern {} - impl< - TSM, - > diesel::query_source::AppearsInFromClause< - diesel::query_builder::Tablesample, - > for pattern - where - TSM: diesel::internal::table_macro::TablesampleMethod, - { - type Count = diesel::query_source::Once; - } - impl< - TSM, - > diesel::SelectableExpression< - diesel::query_builder::Tablesample, - > for pattern - where - TSM: diesel::internal::table_macro::TablesampleMethod, - {} - #[allow(non_camel_case_types, dead_code)] - pub struct rel; - #[automatically_derived] - #[allow(non_camel_case_types, dead_code)] - impl ::core::fmt::Debug for rel { - #[inline] - fn fmt(&self, f: &mut ::core::fmt::Formatter) -> ::core::fmt::Result { - ::core::fmt::Formatter::write_str(f, "rel") - } - } - #[automatically_derived] - #[allow(non_camel_case_types, dead_code)] - impl ::core::clone::Clone for rel { - #[inline] - fn clone(&self) -> rel { - *self - } - } - #[automatically_derived] - #[allow(non_camel_case_types, dead_code)] - impl ::core::marker::Copy for rel {} - #[allow(unused_imports)] - const _: () = { - use diesel; - use diesel::query_builder::QueryId; - #[allow(non_camel_case_types)] - impl QueryId for rel { - type QueryId = rel; - const HAS_STATIC_QUERY_ID: bool = true; - } - }; - #[automatically_derived] - #[allow(non_camel_case_types, dead_code)] - impl ::core::default::Default for rel { - #[inline] - fn default() -> rel { - rel {} - } - } - impl diesel::expression::Expression for rel { - type SqlType = Bpchar; - } - impl diesel::query_builder::QueryFragment for rel - where - DB: diesel::backend::Backend, - diesel::internal::table_macro::StaticQueryFragmentInstance< - table, - >: diesel::query_builder::QueryFragment, - { - #[allow(non_snake_case)] - fn walk_ast<'b>( - &'b self, - mut __diesel_internal_out: diesel::query_builder::AstPass<'_, 'b, DB>, - ) -> diesel::result::QueryResult<()> { - if !__diesel_internal_out.should_skip_from() { - const FROM_CLAUSE: diesel::internal::table_macro::StaticQueryFragmentInstance< - table, - > = diesel::internal::table_macro::StaticQueryFragmentInstance::new(); - FROM_CLAUSE.walk_ast(__diesel_internal_out.reborrow())?; - __diesel_internal_out.push_sql("."); - } - __diesel_internal_out.push_identifier("rel") - } - } - impl diesel::SelectableExpression for rel {} - impl diesel::AppearsOnTable for rel - where - QS: diesel::query_source::AppearsInFromClause< - super::table, - Count = diesel::query_source::Once, - >, - {} - impl< - Left, - Right, - > diesel::SelectableExpression< - diesel::internal::table_macro::Join< - Left, - Right, - diesel::internal::table_macro::LeftOuter, - >, - > for rel - where - rel: diesel::AppearsOnTable< - diesel::internal::table_macro::Join< - Left, - Right, - diesel::internal::table_macro::LeftOuter, - >, - >, - Self: diesel::SelectableExpression, - Right: diesel::query_source::AppearsInFromClause< - super::table, - Count = diesel::query_source::Never, - > + diesel::query_source::QuerySource, - Left: diesel::query_source::QuerySource, - {} - impl< - Left, - Right, - > diesel::SelectableExpression< - diesel::internal::table_macro::Join< - Left, - Right, - diesel::internal::table_macro::Inner, - >, - > for rel - where - rel: diesel::AppearsOnTable< - diesel::internal::table_macro::Join< - Left, - Right, - diesel::internal::table_macro::Inner, - >, - >, - Left: diesel::query_source::AppearsInFromClause - + diesel::query_source::QuerySource, - Right: diesel::query_source::AppearsInFromClause - + diesel::query_source::QuerySource, - ( - Left::Count, - Right::Count, - ): diesel::internal::table_macro::Pick, - Self: diesel::SelectableExpression< - <( - Left::Count, - Right::Count, - ) as diesel::internal::table_macro::Pick>::Selection, - >, - {} - impl< - Join, - On, - > diesel::SelectableExpression< - diesel::internal::table_macro::JoinOn, - > for rel - where - rel: diesel::SelectableExpression - + diesel::AppearsOnTable< - diesel::internal::table_macro::JoinOn, - >, - {} - impl< - From, - > diesel::SelectableExpression< - diesel::internal::table_macro::SelectStatement< - diesel::internal::table_macro::FromClause, - >, - > for rel - where - From: diesel::query_source::QuerySource, - rel: diesel::SelectableExpression - + diesel::AppearsOnTable< - diesel::internal::table_macro::SelectStatement< - diesel::internal::table_macro::FromClause, - >, - >, - {} - impl<__GB> diesel::expression::ValidGrouping<__GB> for rel - where - __GB: diesel::expression::IsContainedInGroupBy< - rel, - Output = diesel::expression::is_contained_in_group_by::Yes, - >, - { - type IsAggregate = diesel::expression::is_aggregate::Yes; - } - impl diesel::expression::ValidGrouping<()> for rel { - type IsAggregate = diesel::expression::is_aggregate::No; - } - impl diesel::expression::IsContainedInGroupBy for rel { - type Output = diesel::expression::is_contained_in_group_by::Yes; - } - impl diesel::query_source::Column for rel { - type Table = super::table; - const NAME: &'static str = "rel"; - } - impl diesel::EqAll for rel - where - T: diesel::expression::AsExpression, - diesel::dsl::Eq< - rel, - T::Expression, - >: diesel::Expression, - { - type Output = diesel::dsl::Eq; - fn eq_all(self, __diesel_internal_rhs: T) -> Self::Output { - use diesel::expression_methods::ExpressionMethods; - self.eq(__diesel_internal_rhs) - } - } - impl diesel::query_source::AppearsInFromClause< - diesel::query_builder::Only, - > for rel { - type Count = diesel::query_source::Once; - } - impl diesel::SelectableExpression> - for rel {} - impl< - TSM, - > diesel::query_source::AppearsInFromClause< - diesel::query_builder::Tablesample, - > for rel - where - TSM: diesel::internal::table_macro::TablesampleMethod, - { - type Count = diesel::query_source::Once; - } - impl< - TSM, - > diesel::SelectableExpression< - diesel::query_builder::Tablesample, - > for rel - where - TSM: diesel::internal::table_macro::TablesampleMethod, - {} - #[allow(non_camel_case_types, dead_code)] - pub struct type_; - #[automatically_derived] - #[allow(non_camel_case_types, dead_code)] - impl ::core::fmt::Debug for type_ { - #[inline] - fn fmt(&self, f: &mut ::core::fmt::Formatter) -> ::core::fmt::Result { - ::core::fmt::Formatter::write_str(f, "type_") - } - } - #[automatically_derived] - #[allow(non_camel_case_types, dead_code)] - impl ::core::clone::Clone for type_ { - #[inline] - fn clone(&self) -> type_ { - *self - } - } - #[automatically_derived] - #[allow(non_camel_case_types, dead_code)] - impl ::core::marker::Copy for type_ {} - #[allow(unused_imports)] - const _: () = { - use diesel; - use diesel::query_builder::QueryId; - #[allow(non_camel_case_types)] - impl QueryId for type_ { - type QueryId = type_; - const HAS_STATIC_QUERY_ID: bool = true; - } - }; - #[automatically_derived] - #[allow(non_camel_case_types, dead_code)] - impl ::core::default::Default for type_ { - #[inline] - fn default() -> type_ { - type_ {} - } - } - impl diesel::expression::Expression for type_ { - type SqlType = Nullable; - } - impl diesel::query_builder::QueryFragment for type_ - where - DB: diesel::backend::Backend, - diesel::internal::table_macro::StaticQueryFragmentInstance< - table, - >: diesel::query_builder::QueryFragment, - { - #[allow(non_snake_case)] - fn walk_ast<'b>( - &'b self, - mut __diesel_internal_out: diesel::query_builder::AstPass<'_, 'b, DB>, - ) -> diesel::result::QueryResult<()> { - if !__diesel_internal_out.should_skip_from() { - const FROM_CLAUSE: diesel::internal::table_macro::StaticQueryFragmentInstance< - table, - > = diesel::internal::table_macro::StaticQueryFragmentInstance::new(); - FROM_CLAUSE.walk_ast(__diesel_internal_out.reborrow())?; - __diesel_internal_out.push_sql("."); - } - __diesel_internal_out.push_identifier("type") - } - } - impl diesel::SelectableExpression for type_ {} - impl diesel::AppearsOnTable for type_ - where - QS: diesel::query_source::AppearsInFromClause< - super::table, - Count = diesel::query_source::Once, - >, - {} - impl< - Left, - Right, - > diesel::SelectableExpression< - diesel::internal::table_macro::Join< - Left, - Right, - diesel::internal::table_macro::LeftOuter, - >, - > for type_ - where - type_: diesel::AppearsOnTable< - diesel::internal::table_macro::Join< - Left, - Right, - diesel::internal::table_macro::LeftOuter, - >, - >, - Self: diesel::SelectableExpression, - Right: diesel::query_source::AppearsInFromClause< - super::table, - Count = diesel::query_source::Never, - > + diesel::query_source::QuerySource, - Left: diesel::query_source::QuerySource, - {} - impl< - Left, - Right, - > diesel::SelectableExpression< - diesel::internal::table_macro::Join< - Left, - Right, - diesel::internal::table_macro::Inner, - >, - > for type_ - where - type_: diesel::AppearsOnTable< - diesel::internal::table_macro::Join< - Left, - Right, - diesel::internal::table_macro::Inner, - >, - >, - Left: diesel::query_source::AppearsInFromClause - + diesel::query_source::QuerySource, - Right: diesel::query_source::AppearsInFromClause - + diesel::query_source::QuerySource, - ( - Left::Count, - Right::Count, - ): diesel::internal::table_macro::Pick, - Self: diesel::SelectableExpression< - <( - Left::Count, - Right::Count, - ) as diesel::internal::table_macro::Pick>::Selection, - >, - {} - impl< - Join, - On, - > diesel::SelectableExpression< - diesel::internal::table_macro::JoinOn, - > for type_ - where - type_: diesel::SelectableExpression - + diesel::AppearsOnTable< - diesel::internal::table_macro::JoinOn, - >, - {} - impl< - From, - > diesel::SelectableExpression< - diesel::internal::table_macro::SelectStatement< - diesel::internal::table_macro::FromClause, - >, - > for type_ - where - From: diesel::query_source::QuerySource, - type_: diesel::SelectableExpression - + diesel::AppearsOnTable< - diesel::internal::table_macro::SelectStatement< - diesel::internal::table_macro::FromClause, - >, - >, - {} - impl<__GB> diesel::expression::ValidGrouping<__GB> for type_ - where - __GB: diesel::expression::IsContainedInGroupBy< - type_, - Output = diesel::expression::is_contained_in_group_by::Yes, - >, - { - type IsAggregate = diesel::expression::is_aggregate::Yes; - } - impl diesel::expression::ValidGrouping<()> for type_ { - type IsAggregate = diesel::expression::is_aggregate::No; - } - impl diesel::expression::IsContainedInGroupBy for type_ { - type Output = diesel::expression::is_contained_in_group_by::Yes; - } - impl diesel::query_source::Column for type_ { - type Table = super::table; - const NAME: &'static str = "type"; - } - impl diesel::EqAll for type_ - where - T: diesel::expression::AsExpression>, - diesel::dsl::Eq< - type_, - T::Expression, - >: diesel::Expression, - { - type Output = diesel::dsl::Eq; - fn eq_all(self, __diesel_internal_rhs: T) -> Self::Output { - use diesel::expression_methods::ExpressionMethods; - self.eq(__diesel_internal_rhs) - } - } - impl diesel::query_source::AppearsInFromClause< - diesel::query_builder::Only, - > for type_ { - type Count = diesel::query_source::Once; - } - impl diesel::SelectableExpression> - for type_ {} - impl< - TSM, - > diesel::query_source::AppearsInFromClause< - diesel::query_builder::Tablesample, - > for type_ - where - TSM: diesel::internal::table_macro::TablesampleMethod, - { - type Count = diesel::query_source::Once; - } - impl< - TSM, - > diesel::SelectableExpression< - diesel::query_builder::Tablesample, - > for type_ - where - TSM: diesel::internal::table_macro::TablesampleMethod, - {} - #[allow(non_camel_case_types, dead_code)] - pub struct href; - #[automatically_derived] - #[allow(non_camel_case_types, dead_code)] - impl ::core::fmt::Debug for href { - #[inline] - fn fmt(&self, f: &mut ::core::fmt::Formatter) -> ::core::fmt::Result { - ::core::fmt::Formatter::write_str(f, "href") - } - } - #[automatically_derived] - #[allow(non_camel_case_types, dead_code)] - impl ::core::clone::Clone for href { - #[inline] - fn clone(&self) -> href { - *self - } - } - #[automatically_derived] - #[allow(non_camel_case_types, dead_code)] - impl ::core::marker::Copy for href {} - #[allow(unused_imports)] - const _: () = { - use diesel; - use diesel::query_builder::QueryId; - #[allow(non_camel_case_types)] - impl QueryId for href { - type QueryId = href; - const HAS_STATIC_QUERY_ID: bool = true; - } - }; - #[automatically_derived] - #[allow(non_camel_case_types, dead_code)] - impl ::core::default::Default for href { - #[inline] - fn default() -> href { - href {} - } - } - impl diesel::expression::Expression for href { - type SqlType = Nullable; - } - impl diesel::query_builder::QueryFragment for href - where - DB: diesel::backend::Backend, - diesel::internal::table_macro::StaticQueryFragmentInstance< - table, - >: diesel::query_builder::QueryFragment, - { - #[allow(non_snake_case)] - fn walk_ast<'b>( - &'b self, - mut __diesel_internal_out: diesel::query_builder::AstPass<'_, 'b, DB>, - ) -> diesel::result::QueryResult<()> { - if !__diesel_internal_out.should_skip_from() { - const FROM_CLAUSE: diesel::internal::table_macro::StaticQueryFragmentInstance< - table, - > = diesel::internal::table_macro::StaticQueryFragmentInstance::new(); - FROM_CLAUSE.walk_ast(__diesel_internal_out.reborrow())?; - __diesel_internal_out.push_sql("."); - } - __diesel_internal_out.push_identifier("href") - } - } - impl diesel::SelectableExpression for href {} - impl diesel::AppearsOnTable for href - where - QS: diesel::query_source::AppearsInFromClause< - super::table, - Count = diesel::query_source::Once, - >, - {} - impl< - Left, - Right, - > diesel::SelectableExpression< - diesel::internal::table_macro::Join< - Left, - Right, - diesel::internal::table_macro::LeftOuter, - >, - > for href - where - href: diesel::AppearsOnTable< - diesel::internal::table_macro::Join< - Left, - Right, - diesel::internal::table_macro::LeftOuter, - >, - >, - Self: diesel::SelectableExpression, - Right: diesel::query_source::AppearsInFromClause< - super::table, - Count = diesel::query_source::Never, - > + diesel::query_source::QuerySource, - Left: diesel::query_source::QuerySource, - {} - impl< - Left, - Right, - > diesel::SelectableExpression< - diesel::internal::table_macro::Join< - Left, - Right, - diesel::internal::table_macro::Inner, - >, - > for href - where - href: diesel::AppearsOnTable< - diesel::internal::table_macro::Join< - Left, - Right, - diesel::internal::table_macro::Inner, - >, - >, - Left: diesel::query_source::AppearsInFromClause - + diesel::query_source::QuerySource, - Right: diesel::query_source::AppearsInFromClause - + diesel::query_source::QuerySource, - ( - Left::Count, - Right::Count, - ): diesel::internal::table_macro::Pick, - Self: diesel::SelectableExpression< - <( - Left::Count, - Right::Count, - ) as diesel::internal::table_macro::Pick>::Selection, - >, - {} - impl< - Join, - On, - > diesel::SelectableExpression< - diesel::internal::table_macro::JoinOn, - > for href - where - href: diesel::SelectableExpression - + diesel::AppearsOnTable< - diesel::internal::table_macro::JoinOn, - >, - {} - impl< - From, - > diesel::SelectableExpression< - diesel::internal::table_macro::SelectStatement< - diesel::internal::table_macro::FromClause, - >, - > for href - where - From: diesel::query_source::QuerySource, - href: diesel::SelectableExpression - + diesel::AppearsOnTable< - diesel::internal::table_macro::SelectStatement< - diesel::internal::table_macro::FromClause, - >, - >, - {} - impl<__GB> diesel::expression::ValidGrouping<__GB> for href - where - __GB: diesel::expression::IsContainedInGroupBy< - href, - Output = diesel::expression::is_contained_in_group_by::Yes, - >, - { - type IsAggregate = diesel::expression::is_aggregate::Yes; - } - impl diesel::expression::ValidGrouping<()> for href { - type IsAggregate = diesel::expression::is_aggregate::No; - } - impl diesel::expression::IsContainedInGroupBy for href { - type Output = diesel::expression::is_contained_in_group_by::Yes; - } - impl diesel::query_source::Column for href { - type Table = super::table; - const NAME: &'static str = "href"; - } - impl diesel::EqAll for href - where - T: diesel::expression::AsExpression>, - diesel::dsl::Eq< - href, - T::Expression, - >: diesel::Expression, - { - type Output = diesel::dsl::Eq; - fn eq_all(self, __diesel_internal_rhs: T) -> Self::Output { - use diesel::expression_methods::ExpressionMethods; - self.eq(__diesel_internal_rhs) - } - } - impl diesel::query_source::AppearsInFromClause< - diesel::query_builder::Only, - > for href { - type Count = diesel::query_source::Once; - } - impl diesel::SelectableExpression> - for href {} - impl< - TSM, - > diesel::query_source::AppearsInFromClause< - diesel::query_builder::Tablesample, - > for href - where - TSM: diesel::internal::table_macro::TablesampleMethod, - { - type Count = diesel::query_source::Once; - } - impl< - TSM, - > diesel::SelectableExpression< - diesel::query_builder::Tablesample, - > for href - where - TSM: diesel::internal::table_macro::TablesampleMethod, - {} - #[allow(non_camel_case_types, dead_code)] - pub struct template; - #[automatically_derived] - #[allow(non_camel_case_types, dead_code)] - impl ::core::fmt::Debug for template { - #[inline] - fn fmt(&self, f: &mut ::core::fmt::Formatter) -> ::core::fmt::Result { - ::core::fmt::Formatter::write_str(f, "template") - } - } - #[automatically_derived] - #[allow(non_camel_case_types, dead_code)] - impl ::core::clone::Clone for template { - #[inline] - fn clone(&self) -> template { - *self - } - } - #[automatically_derived] - #[allow(non_camel_case_types, dead_code)] - impl ::core::marker::Copy for template {} - #[allow(unused_imports)] - const _: () = { - use diesel; - use diesel::query_builder::QueryId; - #[allow(non_camel_case_types)] - impl QueryId for template { - type QueryId = template; - const HAS_STATIC_QUERY_ID: bool = true; - } - }; - #[automatically_derived] - #[allow(non_camel_case_types, dead_code)] - impl ::core::default::Default for template { - #[inline] - fn default() -> template { - template {} - } - } - impl diesel::expression::Expression for template { - type SqlType = Nullable; - } - impl diesel::query_builder::QueryFragment for template - where - DB: diesel::backend::Backend, - diesel::internal::table_macro::StaticQueryFragmentInstance< - table, - >: diesel::query_builder::QueryFragment, - { - #[allow(non_snake_case)] - fn walk_ast<'b>( - &'b self, - mut __diesel_internal_out: diesel::query_builder::AstPass<'_, 'b, DB>, - ) -> diesel::result::QueryResult<()> { - if !__diesel_internal_out.should_skip_from() { - const FROM_CLAUSE: diesel::internal::table_macro::StaticQueryFragmentInstance< - table, - > = diesel::internal::table_macro::StaticQueryFragmentInstance::new(); - FROM_CLAUSE.walk_ast(__diesel_internal_out.reborrow())?; - __diesel_internal_out.push_sql("."); - } - __diesel_internal_out.push_identifier("template") - } - } - impl diesel::SelectableExpression for template {} - impl diesel::AppearsOnTable for template - where - QS: diesel::query_source::AppearsInFromClause< - super::table, - Count = diesel::query_source::Once, - >, - {} - impl< - Left, - Right, - > diesel::SelectableExpression< - diesel::internal::table_macro::Join< - Left, - Right, - diesel::internal::table_macro::LeftOuter, - >, - > for template - where - template: diesel::AppearsOnTable< - diesel::internal::table_macro::Join< - Left, - Right, - diesel::internal::table_macro::LeftOuter, - >, - >, - Self: diesel::SelectableExpression, - Right: diesel::query_source::AppearsInFromClause< - super::table, - Count = diesel::query_source::Never, - > + diesel::query_source::QuerySource, - Left: diesel::query_source::QuerySource, - {} - impl< - Left, - Right, - > diesel::SelectableExpression< - diesel::internal::table_macro::Join< - Left, - Right, - diesel::internal::table_macro::Inner, - >, - > for template - where - template: diesel::AppearsOnTable< - diesel::internal::table_macro::Join< - Left, - Right, - diesel::internal::table_macro::Inner, - >, - >, - Left: diesel::query_source::AppearsInFromClause - + diesel::query_source::QuerySource, - Right: diesel::query_source::AppearsInFromClause - + diesel::query_source::QuerySource, - ( - Left::Count, - Right::Count, - ): diesel::internal::table_macro::Pick, - Self: diesel::SelectableExpression< - <( - Left::Count, - Right::Count, - ) as diesel::internal::table_macro::Pick>::Selection, - >, - {} - impl< - Join, - On, - > diesel::SelectableExpression< - diesel::internal::table_macro::JoinOn, - > for template - where - template: diesel::SelectableExpression - + diesel::AppearsOnTable< - diesel::internal::table_macro::JoinOn, - >, - {} - impl< - From, - > diesel::SelectableExpression< - diesel::internal::table_macro::SelectStatement< - diesel::internal::table_macro::FromClause, - >, - > for template - where - From: diesel::query_source::QuerySource, - template: diesel::SelectableExpression - + diesel::AppearsOnTable< - diesel::internal::table_macro::SelectStatement< - diesel::internal::table_macro::FromClause, - >, - >, - {} - impl<__GB> diesel::expression::ValidGrouping<__GB> for template - where - __GB: diesel::expression::IsContainedInGroupBy< - template, - Output = diesel::expression::is_contained_in_group_by::Yes, - >, - { - type IsAggregate = diesel::expression::is_aggregate::Yes; - } - impl diesel::expression::ValidGrouping<()> for template { - type IsAggregate = diesel::expression::is_aggregate::No; - } - impl diesel::expression::IsContainedInGroupBy