[][src]Crate dbase

To Read the whole file at one you should use the read Once you have access to the records, you will have to match against the real FieldValue

Examples

use dbase::FieldValue;
let records = dbase::read("tests/data/line.dbf").unwrap();
for record in records {
    for (name, value) in record {
        println!("{} -> {:?}", name, value);
        match value {
            FieldValue::Character(string) => println!("Got string: {}", string),
            FieldValue::Numeric(value) => println!("Got numeric value of  {}", value),
            _ => {}
        }
    }
}

Structs

Reader

Struct with the handle to the source .dbf file Responsible for reading the content

Enums

Error

Errors that may happen when reading a .dbf

FieldValue

Functions

read

One liner to read the content of a .dbf file

Type Definitions

Record