[][src]Trait odbc_avro::AvroResultSet

pub trait AvroResultSet {
    fn avro_schema<'n>(
        &self,
        name: &'n str
    ) -> Result<AvroSchema, OdbcAvroError>;
fn write_avro<'n, W: Write>(
        self,
        writer: &mut W,
        codec: Codec,
        name: &'n str
    ) -> Result<usize, OdbcAvroError>; }

Extension functions for ResultSet.

Required methods

fn avro_schema<'n>(&self, name: &'n str) -> Result<AvroSchema, OdbcAvroError>

Crates AvroSchema object from ResultSet schema.

fn write_avro<'n, W: Write>(
    self,
    writer: &mut W,
    codec: Codec,
    name: &'n str
) -> Result<usize, OdbcAvroError>

Writes all rows as Avro "Object Container File" data.

Loading content...

Implementations on Foreign Types

impl<'h, 'c: 'h, S> AvroResultSet for ResultSet<'h, 'c, AvroRowRecord, S, AvroConfiguration>[src]

Loading content...

Implementors

Loading content...