keynslug/dbfer


DBF format encoding

Language: Erlang


dbfer

A simple tool to accumulate a number of records and save them to DBF formatted file. Plain Erlang.

How to use

Straightforward usage example now follows.


very_clever_and_accurate_name_of_the_function() ->
    Schema = dbfer_schema:new([
        dbfer_schema:numeric("AMOUNT", 17, 4),
        dbfer_schema:chars("A_AUDIT_NO", 6),
        dbfer_schema:chars("C_AUDIT_NO", 6),
        dbfer_schema:chars("AUTHSOURCE", 1),
        dbfer_schema:chars("AUTH_CODE", 6),
        dbfer_schema:numeric("BR_ID", 3, 0),
        dbfer_schema:date("DATE")
    ]),
    Records = [
        [124200, <<"666ABC">>, <<"1234">>, "", "CODE42", 42, calendar:universal_time()],
        ...
    ],
    dbfer:save("trash-me.dbf", Schema, Records).

Project Statistics

Sourcerank 2
Repository Size 105 KB
Stars 0
Forks 1
Watchers 1
Open issues 1
Dependencies 0
Contributors 1
Tags 0
Created
Last updated
Last pushed

Top Contributors See all

Andrew Mayorov

Something wrong with this page? Make a suggestion

Login to resync this repository