memgraph/src/query/common.hpp
florijan cc00101cbd Query::StateSwitch added
Summary:
- an enum in query/common.hpp for flagging what kind of switching should be done
- changes in expression evaluator
- changes in logical operators
- modification in RecordAccessor::SwitchOld to support operator functionality
- tests

Reviewers: teon.banek, mislav.bradac, buda

Reviewed By: teon.banek

Subscribers: pullbot

Differential Revision: https://phabricator.memgraph.io/D314
2017-04-25 15:54:30 +02:00

17 lines
433 B
C++

#pragma once
namespace query {
/**
* Indicates that some part of query execution should
* see the OLD graph state (the latest state before the
* current transaction+command), or NEW (state as
* changed by the current transaction+command).
*
* Also some part of query execution could leave
* the graph state AS_IS, that is as it was left
* by some previous part of execution.
*/
enum class GraphView { AS_IS, OLD, NEW };
}