Created
July 1, 2011 11:07
-
-
Save dagolden/1058318 to your computer and use it in GitHub Desktop.
Metabase query language brainstorming
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
head2 Constraints | |
[ FIELD => OPERATOR => EXPRESSION ] | |
[ -or => [CONSTRAINT1, CONSTRAINT2, ...] ] | |
[ -and => [CONSTRAINT1, CONSTRAINT2, ...] ] | |
[ -not => CONSTRAINT ] | |
=head2 Operators and expressions | |
COMPARATOR => VALUE # Any of == != > >= < <= | |
-between => VALUE1, VALUE2 # >= VALUE 1 and <= VALUE2 | |
-like => PATTERN # where '%' is like regex '.+' | |
=head2 Ordering | |
-asc => FIELD | |
-asc => [ FIELD1, FIELD2 ] | |
-desc => FIELD | |
-desc => [ FIELD1, FIELD2 ] | |
=head2 Limit results | |
-limit => NUMBER | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment