Skip to content

Commit 6b535e4

Browse files
committed
Milestone january
1 parent bc194f0 commit 6b535e4

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

app/controllers/docs/4.1/spectql.md

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ Spectql is a query language used by the datatank and uses the URI to parse the q
2121

2222
http://host/spectql/[identifier]{[selectors]}?$filters:[format]
2323

24+
A more specific template is given on [spectql.org](http://spectql.org), not that this is an automatically generated visualization, making sure it's a charm for the eye will come soon.
25+
2426
### identifier
2527

2628
The identifier of the data source on the datatank
@@ -43,9 +45,7 @@ Possible functions are:
4345
* min = returns the minimum value
4446
* sum = returns the sum of the values
4547
* ucase = returns the value in uppercase
46-
* upper = returns the value in uppercase
4748
* lcase = returns the value in lowercase
48-
* lower = returns the value in lowercase
4949
* len = returns the length of a value
5050

5151
### filters
@@ -94,6 +94,19 @@ Let's analyse these queries one by one in order to know what each of them does.
9494
This last query will return the average age of all the objects where the property city is equal to Chicago.
9595

9696

97+
A note to make is the name of the keys will be the same of the original dataset, unless a function has been used! Then the name will be concatenated to the original name of the key e.g.
98+
99+
select{ucase(firstname)}:json
100+
101+
Then the result will be:
102+
103+
<pre class='prettyprint'>
104+
{
105+
"ucase_firstname" : "JOHN"
106+
}
107+
</pre>
108+
109+
97110

98111
<a id="limits" class="anchor"></a>
99112
## Limitations of spectql

0 commit comments

Comments
 (0)