Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Call to real SQL functions #2

Open
blixit opened this issue Jan 23, 2017 · 0 comments
Open

Call to real SQL functions #2

blixit opened this issue Jan 23, 2017 · 0 comments

Comments

@blixit
Copy link
Owner

blixit commented Jan 23, 2017

In the 1st design, i forgot to include sql functions calls. It will be added to the 2nd version.
It should work like that :
SQL_CALL = 'identifier' '(' arg, ... ')'
arg = LValue or 'Identifier' or SQL_CALL

In a 'select' query, a field can be a SQL_CALL.
Ex : to get the average on the age field

: users {
AVG(age)
}

In a 'mutate_query', a right value can be a SQL_CALL.

: users {
token = SHA1('message')
}

These rules will be added to the syntax rules.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant