enso-org / dataframes

A library for working with tabular data in Luna.
https://luna-lang.org
MIT License
6 stars 5 forks source link

Deducing file format when reading table + IO refactor #74

Closed mwu-tow closed 6 years ago

mwu-tow commented 6 years ago

The primary issue solved by this PR is #66 — allowing user to "just read" the file without specifying its format. The interface was already there, it just assumed always CSV. Now all the supported formats should be recognized: CSV, Apache Feather and XLSX.

This PR also refactors the internal C++ interface of IO code. Support for CSV, Feather and XLSX were added separately, each with its own set of slightly differently named functions. This PR unifies them under a common interface, for easier usage, consistence and possible code reuse across all 3 format IO.

Ref #57

Fixes #66