pub struct TypeMapper;Expand description
Type mapper for converting between Exasol and Arrow types.
Implementations§
Source§impl TypeMapper
impl TypeMapper
Sourcepub fn exasol_to_arrow(
exasol_type: &ExasolType,
nullable: bool,
) -> Result<DataType, ConversionError>
pub fn exasol_to_arrow( exasol_type: &ExasolType, nullable: bool, ) -> Result<DataType, ConversionError>
Sourcepub fn arrow_to_exasol(
arrow_type: &DataType,
) -> Result<ExasolType, ConversionError>
pub fn arrow_to_exasol( arrow_type: &DataType, ) -> Result<ExasolType, ConversionError>
Sourcepub fn create_field_metadata(
exasol_type: &ExasolType,
) -> HashMap<String, String>
pub fn create_field_metadata( exasol_type: &ExasolType, ) -> HashMap<String, String>
Create Arrow field metadata to preserve Exasol type information.
This allows round-tripping type information.
Sourcepub fn from_field_metadata(
metadata: &HashMap<String, String>,
) -> Option<ExasolType>
pub fn from_field_metadata( metadata: &HashMap<String, String>, ) -> Option<ExasolType>
Extract Exasol type from Arrow field metadata.
Auto Trait Implementations§
impl Freeze for TypeMapper
impl RefUnwindSafe for TypeMapper
impl Send for TypeMapper
impl Sync for TypeMapper
impl Unpin for TypeMapper
impl UnsafeUnpin for TypeMapper
impl UnwindSafe for TypeMapper
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