pub struct JoinedSource { /* private fields */ }Expand description
A data source that represents the join of multiple tables
Implementations§
Source§impl JoinedSource
impl JoinedSource
Sourcepub fn left_alias(&self) -> &str
pub fn left_alias(&self) -> &str
Get the left table alias
Sourcepub fn right_alias(&self) -> &str
pub fn right_alias(&self) -> &str
Get the right table alias
Sourcepub fn join_condition(&self) -> &JoinCondition
pub fn join_condition(&self) -> &JoinCondition
Get the join condition
Sourcepub fn generate_sql(&self, table_name: &str) -> String
pub fn generate_sql(&self, table_name: &str) -> String
Generate SQL query for the joined tables
Trait Implementations§
Source§impl Clone for JoinedSource
impl Clone for JoinedSource
Source§fn clone(&self) -> JoinedSource
fn clone(&self) -> JoinedSource
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl DataSource for JoinedSource
impl DataSource for JoinedSource
Source§fn register_with_telemetry<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
ctx: &'life1 SessionContext,
table_name: &'life2 str,
telemetry: Option<&'life3 Arc<TermTelemetry>>,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn register_with_telemetry<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
ctx: &'life1 SessionContext,
table_name: &'life2 str,
telemetry: Option<&'life3 Arc<TermTelemetry>>,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Registers this data source with telemetry support. Read more
Source§fn schema(&self) -> Option<&Arc<Schema>>
fn schema(&self) -> Option<&Arc<Schema>>
Returns the schema of this data source if known. Read more
Source§fn description(&self) -> String
fn description(&self) -> String
Returns a human-readable description of this data source.
Source§fn register<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
ctx: &'life1 SessionContext,
table_name: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn register<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
ctx: &'life1 SessionContext,
table_name: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Registers this data source with the given session context. Read more
Auto Trait Implementations§
impl Freeze for JoinedSource
impl !RefUnwindSafe for JoinedSource
impl Send for JoinedSource
impl Sync for JoinedSource
impl Unpin for JoinedSource
impl !UnwindSafe for JoinedSource
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more