FileConfig.Handler.Csv (file_config v0.7.1)

Copy Markdown View Source

Handler for CSV files

Summary

Types

reason()

@type reason() :: FileConfig.reason()

Functions

init_config(config, args)

@spec init_config(map(), Keyword.t()) :: {:ok, map()} | {:error, reason()}

insert_records(state, records)

@spec insert_records(
  FileConfig.Loader.table_state(),
  {term(), term()} | [{term(), term()}]
) ::
  :ok | {:error, FileConfig.reason()}

load_update(name, update, tab, prev)

lookup(state, key)

This function is deprecated. Use read/2 instead.
@spec lookup(FileConfig.Loader.table_state(), term()) :: term()

parse_file(path, tab, config)

@spec parse_file(Path.t(), :ets.tab(), map()) :: {:ok, map()}

read(state, key)

@spec read(FileConfig.Loader.table_state(), term()) ::
  {:ok, term()} | nil | {:error, reason()}