memgraph/src
Teon Banek 9d3b4aab4b Make Where and NamedExpression macros easier to use
Summary:
`Where` can now be constructed in a `QUERY`, instead of requiring manual
addition to `Match`. For example:

    auto query = QUERY(MATCH(pattern), WHERE(expr), ...);

compared to:

    auto match = MATCH(pattern);
    match->where_ = WHERE(expr);
    auto query = QUERY(match, ...);

Similarly, `AS` can be used instead of `NEXPR` to create
`NamedExpressions` only with a name. This is meant to be used with
`RETURN` which will look at the previous `Expression` and store it
inside `NamedExpression`. For example:

    auto ret = RETURN(IDENT("n"), AS("n"),
                      PROPERTY_LOOKUP("n", prop), AS("prop_val"));

compared to:

    auto ret = RETURN(NEXPR("n", IDENT("n")),
                      NEXPR("prop_val", PROPERTY_LOOKUP("n", prop)));

Reviewers: florijan, mislav.bradac

Reviewed By: florijan

Subscribers: pullbot

Differential Revision: https://phabricator.memgraph.io/D195
2017-03-29 09:09:54 +02:00
..
communication Bolt PullAll works. 2017-03-28 12:43:04 +02:00
config Everything is merged (communication + query engine) but we have to fix the PULL_ALL issue. 2017-03-22 17:57:06 +01:00
data_structures Fix warnings all over the codebase. 2017-03-22 09:32:06 +01:00
database GraphDbAccessor - DetachRemove - commands re-ordered for better (assumed) efficiency 2017-03-24 14:17:04 +01:00
dbms DBMS now returns a unique pointer to a GraphDbAccessor 2017-03-14 13:37:23 +01:00
import Refactor TypedValue to PropertyValue 2017-03-01 12:31:47 +01:00
io/network Bolt PullAll works. 2017-03-28 12:43:04 +02:00
logging Fix naming of asserts.runtime_assert & assert -> debug_assert 2017-02-24 11:41:55 +01:00
memory Fix naming of asserts.runtime_assert & assert -> debug_assert 2017-02-24 11:41:55 +01:00
mvcc Query - ExpandCreate, prop tests, MATCH_CREATE 2017-03-22 13:41:21 +01:00
query Make Where and NamedExpression macros easier to use 2017-03-29 09:09:54 +02:00
serialization clang format has been run on all hpp and cpp files under src and tests 2017-02-18 11:54:37 +01:00
snapshot clang format has been run on all hpp and cpp files under src and tests 2017-02-18 11:54:37 +01:00
storage Query::Plan - Set logical ops implementation and testing. PropertyValueStore set() overriden to handle Null values as a removal instead of setting them. PropertyValueStore.clear() function added. 2017-03-29 08:51:12 +02:00
template_engine clang format has been run on all hpp and cpp files under src and tests 2017-02-18 11:54:37 +01:00
threading Fix naming of asserts.runtime_assert & assert -> debug_assert 2017-02-24 11:41:55 +01:00
transactions Fix engine. 2017-03-24 12:37:01 +01:00
traversal Traversal namespace specialization added for real DB primitives 2017-03-03 14:01:01 +01:00
utils Utils - random graph generator hacked 2017-03-24 13:13:04 +01:00
copy_hardcoded_queries.cpp copy hardcoded queries 2017-02-27 18:26:51 +01:00
memgraph_bolt.cpp Bolt PullAll works. 2017-03-28 12:43:04 +02:00