pub struct InformationSchemaColumnsBuilder { /* private fields */ }Expand description
Builds information_schema.columns rows at a given ColumnsDetail level.
Implementations§
Source§impl InformationSchemaColumnsBuilder
impl InformationSchemaColumnsBuilder
Sourcepub fn new(detail: ColumnsDetail) -> Self
pub fn new(detail: ColumnsDetail) -> Self
Construct an empty builder that will only retain the columns needed
for detail.
Sourcepub fn with_extension_type_registry(
self,
extension_types: Option<ExtensionTypeRegistryRef>,
) -> Self
pub fn with_extension_type_registry( self, extension_types: Option<ExtensionTypeRegistryRef>, ) -> Self
Use the extension type registry to show the
display_name
of registered extension types in data_type.
Sourcepub fn add_column(
&mut self,
catalog_name: &str,
schema_name: &str,
table_name: &str,
field_position: usize,
field: &Field,
)
pub fn add_column( &mut self, catalog_name: &str, schema_name: &str, table_name: &str, field_position: usize, field: &Field, )
Append one row describing field. Values not needed at this builder’s
detail level are discarded.
Sourcepub fn finish(&mut self) -> RecordBatch
pub fn finish(&mut self) -> RecordBatch
Finalize the builder into a RecordBatch.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for InformationSchemaColumnsBuilder
impl !UnwindSafe for InformationSchemaColumnsBuilder
impl Forget for InformationSchemaColumnsBuilder
impl Freeze for InformationSchemaColumnsBuilder
impl Move for InformationSchemaColumnsBuilder
impl Send for InformationSchemaColumnsBuilder
impl Sync for InformationSchemaColumnsBuilder
impl Unpin for InformationSchemaColumnsBuilder
impl UnsafeUnpin for InformationSchemaColumnsBuilder
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> 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