cfsimplicity / spreadsheet-cfml

Standalone library for working with spreadsheets and CSV in CFML
MIT License
126 stars 35 forks source link

Chainable read() method should return the data if format specified #306

Closed cfsimplicity closed 1 year ago

cfsimplicity commented 1 year ago

By default, newChainable().read() will read a file and store the workbook object further chained calls to operate on.

If the format is specified then it should return the data and end the chain.

cfsimplicity commented 1 year ago

This would be an uncommon use case because

data = spreadsheet.newChainable().read( path, "query" );

is more complex and therefore doesn't really offer any benefits over

data = spreadsheet.read( path, "query);

Still, I think this would be the expected behaviour if used.