8000 GitHub - kalolo/elixir_dbf: Small library for DBF parsing written in pure elixir
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Small library for DBF parsing written in pure elixir

Notifications You must be signed in to change notification settings

kalolo/elixir_dbf

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ElixirDbf

Hex pm License Downloads

Small library for DBF parsing written in pure elixir

  {:ok, rows} = ElixirDbf.Table.read("test/fixtures/cp1251.dbf", :cp1251)
  {:ok,
   %ElixirDbf.Table{
     header: %{
       columns: [
         %{field_size: 4, name: "RN", type: :numeric},
         %{field_size: 100, name: "NAME", type: :string}
       ],
       date: 199175,
       encoding: :utf8,
       encryption_flag: 0,
       header_size: 360,
       incomplete_transaction: 0,
       language_driver_id: 201,
       mdx_flag: 1,
       record_size: 105,
       records: 4,
       version: "Visual FoxPro"
     },
     rows: [
       [{"RN", 1}, {"NAME", ""}],
       [{"RN", 2}, {"NAME", ""}],
       [{"RN", 3}, {"NAME", ""}],
       [{"RN", 4}, {"NAME", ""}]
     ]
   }}

Installation

If available in Hex, the package can be installed by adding elixir_dbf to your list of dependencies in mix.exs:

def deps do
  [
    {:elixir_dbf, "~> 0.1.10"}
  ]
end

Documentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/elixir_dbf.

About

Small library for DBF parsing written in pure elixir

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Elixir 100.0%
0