sqlload 0.11.0

SQL data loading tooling. Pre-release, under development.
/// One Kafka record as sqlload sees it.
#[derive(Debug, Clone, PartialEq, Eq)]
pub struct KafkaRecord {
    pub topic: String,
    pub partition: i32,
    pub offset: i64,
    pub key: Option<Vec<u8>>,
    pub timestamp_ms: Option<i64>,
    pub timestamp_type: Option<i64>,
    pub value: Option<Vec<u8>>,
    pub headers: Vec<RecordHeader>,
}

/// One Kafka record header.
#[derive(Debug, Clone, PartialEq, Eq)]
pub struct RecordHeader {
    pub name: String,
    pub value: Option<Vec<u8>>,
}

/// What an encoded row depends on besides the record.
#[derive(Debug, Clone, Copy)]
pub struct RowContext<'a> {
    pub exported_at_ms: i64,
    pub time_zone: chrono_tz::Tz,
    /// Columns filled from a member of the JSON value.
    pub unwrap: &'a std::collections::BTreeMap<String, String>,
}