Skip to content

expressions need to pass through expressions to DB's #13

@araddon

Description

@araddon

As a proxy, expressions in SQL could potentially be evaluated in one of several points of the lifecycle:;

  1. Initial Proxy Routing/Evaluation context: ie proxy recieves sql, evaluate before passing through to datastore
  2. 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 +1 or set type operations in cassandra, n1ql or postgres or mongo
  3. 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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions