csvto v0.1.2 Csvto.Reader

Summary

Functions

Read from csv specified by path and convert to stream of map accoriding to given schema

Types

column_def()
column_def() :: nil | Csvto.Field.t
context()
context() :: %{path: String.t, columns: [column_def], column_count: integer, aggregate_column: column_def, schema: Csvto.Schema.t, fields: %{optional(String.t) => Csvto.Field.t}, aggregate_fields: %{optional(String.t) => Csvto.Field.t}, unspecified: [Csvto.Field.t], opts: Map.t}

Functions

extract_name_of_required(fields)
from(path, module, schema_name, opts \\ [])

Read from csv specified by path and convert to stream of map accoriding to given schema

from!(path, module, schema_name, opts \\ [])