pub struct SQLTableFunctionStream {
pub columns: Vec<String>,
pub rows: SQLRowStream<'static, Vec<Value>>,
}Expand description
Pull-based result returned by a registered SQL table function.
The iterator may report a late error after yielding earlier rows; the SQL physical pipeline propagates that error instead of turning it into an empty or truncated result.
Fields§
§columns: Vec<String>§rows: SQLRowStream<'static, Vec<Value>>Implementations§
Source§impl SQLTableFunctionStream
impl SQLTableFunctionStream
pub fn new<I>( columns: impl IntoIterator<Item = impl Into<String>>, rows: I, ) -> SQLTableFunctionStream
Sourcepub fn from_source(
columns: impl IntoIterator<Item = impl Into<String>>,
rows: impl SQLRowSource<Vec<Value>> + 'static,
) -> SQLTableFunctionStream
pub fn from_source( columns: impl IntoIterator<Item = impl Into<String>>, rows: impl SQLRowSource<Vec<Value>> + 'static, ) -> SQLTableFunctionStream
Transfer a scan with fallible cleanup to the execution pipeline.
Trait Implementations§
Source§impl From<SQLTableFunctionResult> for SQLTableFunctionStream
impl From<SQLTableFunctionResult> for SQLTableFunctionStream
Source§fn from(result: SQLTableFunctionResult) -> SQLTableFunctionStream
fn from(result: SQLTableFunctionResult) -> SQLTableFunctionStream
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for SQLTableFunctionStream
impl !Sync for SQLTableFunctionStream
impl !UnwindSafe for SQLTableFunctionStream
impl Freeze for SQLTableFunctionStream
impl Send for SQLTableFunctionStream
impl Unpin for SQLTableFunctionStream
impl UnsafeUnpin for SQLTableFunctionStream
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
impl<T> ErasedDestructor for Twhere
T: 'static,
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