csvto v0.1.3 Csvto.Reader

Link to this section Summary

Functions

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

Link to this section Types

Link to this type column_def()
column_def() :: nil | Csvto.Field.t()
Link to this type 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()
}

Link to this section Functions

Link to this function extract_name_of_required(fields)
Link to this function from!(path, module, schema_name, opts \\ [])
Link to this function from(path, module, schema_name, opts \\ [])

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