sas7bdat 0.2.0

Rust library + CLI for decoding SAS7BDAT datasets and streaming them to modern formats.
Documentation
pub mod cell;
pub mod dataset;
pub mod error;
mod iter_utils;
pub mod logger;
pub mod parser;
pub mod reader;
pub mod sinks;
pub use crate::error::{Error, Result};
pub use cell::{CellValue, MissingValue};
pub use reader::{Row, RowIter, RowLookup, RowSelection, RowValue, SasReader};
#[cfg(feature = "csv")]
pub use sinks::CsvSink;
#[cfg(feature = "parquet")]
pub use sinks::ParquetSink;
pub use sinks::{ColumnarSink, RowSink, SinkContext};
#[cfg(feature = "time")]
pub use time::OffsetDateTime;

/// Parses SAS metadata and returns the decoded layout information.
///
/// # Errors
///
/// Returns an error if the metadata pages cannot be decoded.
pub fn decode_layout<R: std::io::Read + std::io::Seek>(
    reader: &mut R,
) -> Result<parser::DatasetLayout> {
    parser::parse_metadata(reader)
}