-
Notifications
You must be signed in to change notification settings - Fork 77
Open
Description
As a proxy, expressions in SQL could potentially be evaluated in one of several points of the lifecycle:;
- Initial Proxy Routing/Evaluation context: ie proxy recieves sql, evaluate before passing through to datastore
- DataStore: pass through expressions to db, used for db's that support them natively, either as a function in db, or a translation such as mutations ie
col +1or set type operations in cassandra, n1ql or postgres or mongo - return, after returning data from datastore, before returning to requester, perform manipulations on it.
How to express these 3 different contexts? Currently I think only 1 is supported for update/insert/delete and 2 is not supported at all and 3 for select only.
UPDATE counterks.page_view_counts
SET counter_value = counter_value + 2
WHERE url_name='www.datastax.com' AND page_name='home';CQL set operation
UPDATE users
SET emails = emails + {'fb@friendsofmordor.org'} WHERE user_id = 'frodo';Metadata
Metadata
Assignees
Labels
No labels