@@ -182,7 +182,7 @@ Reading from a CSV Data Source
182182
183183You can read data from a CSV data source in a number of ways.
184184
185- The most basic is to use the ``csv `` function to return the value of one field (selected-column) given a field name to search (column-name) and
185+ The most basic is to use the ``csv `` function to return the value of one field (selected-column) given a field name to search (column-name) and
186186a value to search for in that field (query-value). Of course the query-value would normally be pulled from the request.
187187
188188.. code :: handlebars
@@ -245,14 +245,14 @@ To return all the data from the csv as an array of maps, you use the ``csvAsMap`
245245.. code :: handlebars
246246
247247 {{csvAsMap '(data-source-name)' }}
248-
249248
250- To return filtered data from the csv as an array of maps, you use the ``csvMatchingRows``function.
249+
250+ To return filtered data from the csv as an array of maps, you use the ``csvMatchingRows``function.
251251(Note that you would need to wrap this in an #each block. See examples below.):
252252
253253.. code:: handlebars
254254
255- {{csvMatchingRows '(data-source-name)' '(column-name)' '(query-value)' '(selected-column)' }}
255+ {{csvMatchingRows '(data-source-name)' '(column-name)' '(query-value)'}}
256256
257257To return all the data from the csv as an array arrays, you use the ``csvAsArray `` function.
258258(Note that you would need to wrap this in an #each block. See examples below.):
@@ -261,7 +261,7 @@ To return all the data from the csv as an array arrays, you use the ``csvAsArray
261261
262262 {{csvAsArray '(data-source-name)' }}
263263
264- To return filtered data from the csv as an array of maps using the SQL like dialect, you use the ``csvSqlCommand `` function.
264+ To return filtered data from the csv as an array of maps using the SQL like dialect, you use the ``csvSqlCommand `` function.
265265Again this needs to be wrapped in an #each block:
266266
267267.. code :: handlebars
@@ -401,8 +401,8 @@ To delete all the pets where the category is cats from the pets csv data store:
401401``{{ csvDeleteRows 'pets' 'category' 'cats' false }} ``
402402
403403Note that the last parameter of "output-result" is a boolean. It is not enclosed in quotes. The function will return the number of rows
404- affected which can either be suppressed by passing false to this parameter, or passed into another function if you need to make logical
405- decisions based on the number of rows affected by passing in true as the last parameter. If ``csvDeleteRows `` is not enclosed within another
404+ affected which can either be suppressed by passing false to this parameter, or passed into another function if you need to make logical
405+ decisions based on the number of rows affected by passing in true as the last parameter. If ``csvDeleteRows `` is not enclosed within another
406406function it will output the number of rows deleted to the template.
407407
408408``{{#equal (csvDeleteRows 'pets' 'category' 'cats' true) '0'}}
@@ -423,8 +423,8 @@ Deleting data from a CSV Data Source using SQL like syntax
423423 Example:
424424``{{ csvSqlCommand "DELETE FROM pets WHERE id > '20'" }} ``
425425
426- Calling the csvSqlCommand for Delete and Update commands will execute the statements without outputting anything to the template.
427- The rows affected will be logged for debugging purposes.
426+ Calling the csvSqlCommand for Delete and Update commands will execute the statements without outputting anything to the template.
427+ The rows affected will be logged for debugging purposes.
428428
429429
430430
@@ -473,7 +473,7 @@ Joins across different data sources are not supported.
473473Counting the rows in a CSV Data Source
474474~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
475475
476- You can return the number of rows in a csv dataset using ``csvCountRows ``.
476+ You can return the number of rows in a csv dataset using ``csvCountRows ``.
477477This will be 1 less than the number of rows as the first row contains the column names.
478478
479479.. code :: handlebars
0 commit comments