pub struct SQLTableFunctionStream {
pub columns: Vec<String>,
pub rows: Box<dyn Iterator<Item = Result<Vec<Value>, SQLError>> + Send>,
}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: Box<dyn Iterator<Item = Result<Vec<Value>, SQLError>> + Send>Implementations§
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