View Source ExDbase (ExDbase v1.0.0)

Elixir library to parse Dbase III (.dbf) files

Summary

Functions

Takes a .dbf file and return a map of fields / columns types

Takes a .dbf file and return a keyword list of the header data.

Takes .dbf file and return a list of records.

Functions

Takes a .dbf file and return a map of fields / columns types

Takes a .dbf file and return a keyword list of the header data.

Link to this function

parse(dbf_file, columns \\ [], map_fn \\ fn x -> x end)

View Source

Takes .dbf file and return a list of records.

Each record will be map in the folowing format "%{column_name => data}".

Option

  • :columns - List of field names to be extracted from each record, which defaults to "[]" i.e. all.
  • :map_fn - Anonymous map fn to transform each record, which defaults to "fn x -> x end".