posexional v1.0.0 Posexional.File View Source
a Posexional.File is the main struct to manage a positional file
Link to this section Summary
Functions
adds a generator for every progressive_number_field in the file.
creates a file from values
Link to this section Functions
adds a generator for every progressive_number_field in the file.
The fields are grouped by name, so that you can specify many counters for every row
creates a file from values
Examples
iex> Posexional.File.write(
...> Posexional.File.new([ Posexional.Row.new(:row_test, [ Posexional.Field.Value.new(:test1, 5) ]) ]),
...> [row_test: [test1: "test"], row_test: [test1: "t"]]
...> )
"test \nt "
iex> Posexional.File.write(
...> Posexional.File.new([ Posexional.Row.new(:row_test, [ Posexional.Field.Value.new(:test1, 5) ]) ]),
...> [row_test: [test1: "test"], ne: [test1: "t"]]
...> )
** (RuntimeError) row ne not found