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

Update operators syntax #8

Open
JPDSousa opened this issue Nov 2, 2017 · 0 comments
Open

Update operators syntax #8

JPDSousa opened this issue Nov 2, 2017 · 0 comments
Assignees

Comments

@JPDSousa
Copy link
Owner

JPDSousa commented Nov 2, 2017

Use a more SQL-like syntax for update operators:

  • x INCREMENT/DECREMENT y -> x = x +/- y
    • x is the name of the column
    • y is the value to increment/decrement
    • Consider * and / as (invalid) operators
    • Do not consider more than 2 clauses (i.e. a + b)
  • x ASSIGN y -> x = y
    • x is the name of the column
    • y is the value to assign to x
      • Alternatively, y could the name of another column
  • x ENABLE/DISABLE -> x = True/False
    • x is the name of the column
    • True/False are constants
@JPDSousa JPDSousa self-assigned this Nov 2, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant