| 52 | if (!is_schema_found) { throw std::runtime_error("schema is not found!"); } |
| 53 | if (!is_file_found) { throw std::runtime_error("csv/json file is not found!"); } |
| 54 | |
| 55 | return read(dir); |
| 56 | } |
| 57 | |
| 58 | Reader& Connection::read_fls(const path& dir_path) { |
| 59 | // init |
| 60 | m_reader = make_unique<Reader>(dir_path, *this); |
| 61 | |
| 62 | return *m_reader; |
no outgoing calls