pub struct ArrowToPostgresBinaryEncoder { /* private fields */ }Implementations§
Source§impl ArrowToPostgresBinaryEncoder
impl ArrowToPostgresBinaryEncoder
Sourcepub fn try_new(schema: &Schema) -> Result<Self, ErrorKind>
pub fn try_new(schema: &Schema) -> Result<Self, ErrorKind>
Creates a new writer which will write rows of the provided types to the provided sink.
pub fn try_new_with_encoders( schema: &Schema, encoders: &HashMap<String, EncoderBuilder>, ) -> Result<Self, ErrorKind>
pub fn schema(&self) -> PostgresSchema
pub fn write_header(&mut self, out: &mut BytesMut)
pub fn write_batch( &mut self, batch: &RecordBatch, buf: &mut BytesMut, ) -> Result<(), ErrorKind>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ArrowToPostgresBinaryEncoder
impl RefUnwindSafe for ArrowToPostgresBinaryEncoder
impl Send for ArrowToPostgresBinaryEncoder
impl Sync for ArrowToPostgresBinaryEncoder
impl Unpin for ArrowToPostgresBinaryEncoder
impl UnwindSafe for ArrowToPostgresBinaryEncoder
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