TAKE [generic]
TAKE [number]
ON [table_name]
MATCH [field] [operator] [value]
SHOW [generic]
SHOW [field]
SHOW [field1], [field2], [fieldN]
COUNT
COUNT [field]
SORT [field] [sort]
=
, >
, <
, like
, and
, or
*
, all
, any
, every
single
, 1
, 2
, ...
asc
, des
-
Assume
TAKE *
if not present -
Assume
SHOW *
if not present -
Command
ON
is required -
Command
SHOW
andCOUNT
cannot be in the same query -
Command
SORT
andCOUNT
cannot be in the same query
-
supermatch
-
match
-
sort
-
limit
Description:
Get the age of the first 2 users named John
Query:
`TAKE 2 ON users MATCH name = 'John' SHOW 'age';`
Result:
`[ 24, 21 ]`
- Write tests