csvto v0.1.0 Csvto behaviour

Behaviour for converting csv to & from a file

A Csvto is a collection of csv schemas, which is used to map data from csv file into Elixir maps

By default we provide Csvto.Builder to help with building a Csvto, see more details in Csvto.Builder

Summary

Callbacks

Convert a csv file specified by path to a list of map according to given schema

Types

from_result_t()
from_result_t() :: [Map.t] | {:error, any} | no_return

Callbacks

from(path, schema)
from(path :: String.t, schema :: atom) :: from_result_t

Convert a csv file specified by path to a list of map according to given schema

from(path, schema, options)
from(path :: String.t, schema :: atom, options :: Keyword.t) :: from_result_t