Fix and rename REPL
Summary: Fix and rename REPL Reviewers: teon.banek Reviewed By: teon.banek Differential Revision: https://phabricator.memgraph.io/D1284
This commit is contained in:
parent
68c68655cc
commit
848749cf25
@ -26,7 +26,7 @@ set(memgraph_src_files
|
||||
io/network/endpoint.cpp
|
||||
io/network/socket.cpp
|
||||
query/common.cpp
|
||||
query/console.cpp
|
||||
query/repl.cpp
|
||||
query/frontend/ast/ast.cpp
|
||||
query/frontend/ast/cypher_main_visitor.cpp
|
||||
query/frontend/semantic/symbol_generator.cpp
|
||||
|
@ -1,4 +1,4 @@
|
||||
#include "console.hpp"
|
||||
#include "repl.hpp"
|
||||
|
||||
#include <algorithm>
|
||||
#include <iostream>
|
||||
@ -49,6 +49,8 @@ std::string ReadLine(const char *prompt) {
|
||||
#endif // HAS_READLINE
|
||||
|
||||
void query::Repl(database::GraphDb &db) {
|
||||
query::Interpreter interpeter;
|
||||
|
||||
std::cout
|
||||
<< "Welcome to *Awesome* Memgraph Read Evaluate Print Loop (AM-REPL)"
|
||||
<< std::endl;
|
||||
@ -59,8 +61,6 @@ void query::Repl(database::GraphDb &db) {
|
||||
// special commands
|
||||
if (command == "quit") break;
|
||||
|
||||
query::Interpreter interpeter;
|
||||
|
||||
// regular cypher queries
|
||||
try {
|
||||
database::GraphDbAccessor dba(db);
|
@ -7,7 +7,7 @@
|
||||
#include <glog/logging.h>
|
||||
|
||||
#include "database/graph_db.hpp"
|
||||
#include "query/console.hpp"
|
||||
#include "query/repl.hpp"
|
||||
#include "query/interpreter.hpp"
|
||||
#include "utils/flag_validation.hpp"
|
||||
|
||||
|
@ -34,7 +34,7 @@ DEFINE_string(load_mock_db_file, "",
|
||||
DECLARE_int32(min_log_level);
|
||||
|
||||
#ifdef HAS_READLINE
|
||||
// TODO: This is copied from src/query/console.cpp
|
||||
// TODO: This is copied from src/query/repl.cpp
|
||||
// It should probably be moved to some utils file.
|
||||
|
||||
#include "readline/history.h"
|
||||
|
@ -6,7 +6,7 @@
|
||||
#include <glog/logging.h>
|
||||
|
||||
#include "database/graph_db.hpp"
|
||||
#include "query/console.hpp"
|
||||
#include "query/repl.hpp"
|
||||
#include "query/interpreter.hpp"
|
||||
#include "utils/random_graph_generator.hpp"
|
||||
|
Loading…
Reference in New Issue
Block a user