csv_data() = [csv_row()]
csv_options() = #{delimiter => char(), quote_char => char(), escape_char => char(), has_header => boolean(), skip_empty_lines => boolean(), trim => boolean(), comment_char => char() | undefined}
csv_result() = {ok, csv_data()} | {ok, csv_data(), csv_row()} | {error, term()}
csv_row() = [binary()]
parse_file/1 | Parse a CSV file with default options. |
parse_file/2 | Parse a CSV file with custom options. |
parse_string/1 | Parse a CSV string with default options. |
parse_string/2 | Parse a CSV string with custom options. |
write_file/2 | Write data to a CSV file with default options. |
write_file/3 | Write data to a CSV file with custom options. |
write_string/1 | Convert data to a CSV string with default options. |
write_string/2 | Convert data to a CSV string with custom options. |
parse_file(Filename::file:filename()) -> csv_result()
Parse a CSV file with default options
parse_file(Filename::file:filename(), Options::csv_options()) -> csv_result()
Parse a CSV file with custom options
parse_string(Binary::binary()) -> csv_result()
Parse a CSV string with default options
parse_string(Binary::binary(), UserOptions::csv_options()) -> csv_result()
Parse a CSV string with custom options
write_file(Filename::file:filename(), Data::csv_data()) -> ok | {error, term()}
Write data to a CSV file with default options
write_file(Filename::file:filename(), Data::csv_data(), Options::csv_options()) -> ok | {error, term()}
Write data to a CSV file with custom options
write_string(Data::csv_data()) -> {ok, binary()} | {error, term()}
Convert data to a CSV string with default options
write_string(Data::csv_data(), UserOptions::csv_options()) -> {ok, binary()} | {error, term()}
Convert data to a CSV string with custom options
Generated by EDoc