Copyright © 2021 Serge Aleynikov
Authors: Serge Aleynikov (saleyn@gmail.com).
guess_data_type/1 | |
guess_data_types/2 | |
load_to_mysql/4 | Load CSV data from File to MySQL database NOTE: this function requires https://github.com/mysql-otp/mysql-otp.git. |
max_field_lengths/2 | Get max field lengths for a list obtained by parsing a CSV file with
parse_csv_file(File,[fix_lengths]) . |
parse/1 | |
parse/2 | Parse a given CSV file. |
parse_line/1 |
guess_data_type(S :: binary()) -> {null | date | datetime | integer | float | string, term(), string()}
guess_data_types(HasHeaders, CSV) -> any()
load_to_mysql(File :: string(), Tab :: string(), MySqlPid :: pid(), Opts :: [{batch_size, integer()} | {blob_size, integer()} | {save_create_sql_to_file, string()} | {guess_types, boolean()} | {guess_limit_rows, integer()} | {max_nulls_pcnt, float()} | {primary_key, PKColumns :: binary() | [binary() | list()]} | {encoding, string() | atom()} | {verbose, boolean()}]) -> {Columns :: list(), RecCount :: integer()}
Load CSV data from File to MySQL database NOTE: this function requires https://github.com/mysql-otp/mysql-otp.git
max_field_lengths(HasHeaderRow :: boolean(), Rows :: [Fields :: list()]) -> [Len :: integer()]
Get max field lengths for a list obtained by parsing a CSV file with
parse_csv_file(File,[fix_lengths])
.
parse(File :: string()) -> [[string()]]
parse(File :: string(), Opts :: [fix_lengths | {open, Opts :: list()}]) -> [[string()]]
Parse a given CSV file. Options:
parse_line(Line) -> any()
Generated by EDoc