NeoCpp
neo4j_interface.h
1 /*
2 Apache 2.0 License
3 
4 Copyright 2018 Alex Barry
5 
6 Licensed under the Apache License, Version 2.0 (the "License");
7 you may not use this file except in compliance with the License.
8 You may obtain a copy of the License at
9 
10  http://www.apache.org/licenses/LICENSE-2.0
11 
12 Unless required by applicable law or agreed to in writing, software
13 distributed under the License is distributed on an "AS IS" BASIS,
14 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 See the License for the specific language governing permissions and
16 limitations under the License.
17 */
18 
19 #include <string>
20 #include <unordered_map>
21 
22 #include "neocpp/data/interface/result_iterator_interface.h"
23 #include "neocpp/data/interface/query_parameter_interface.h"
24 
25 #ifndef NEOCPP_CONNECTION_INTERFACE_NEO4J_INTERFACE_H_
26 #define NEOCPP_CONNECTION_INTERFACE_NEO4J_INTERFACE_H_
27 
28 namespace Neocpp {
29 
31 
36  public:
37  virtual ~Neo4jInterface() {}
38 
40  virtual ResultsIteratorInterface* execute(const char * query) = 0;
41 
43  virtual ResultsIteratorInterface* execute(std::string query) = 0;
44 
46  virtual ResultsIteratorInterface* execute(const char * query, \
47  std::unordered_map<std::string, Neo4jQueryParameterInterface*>\
48  query_params) = 0;
49 
51  virtual ResultsIteratorInterface* execute(std::string query, \
52  std::unordered_map<std::string, Neo4jQueryParameterInterface*> \
53  query_params) = 0;
54 };
55 
56 } // namespace Neocpp
57 
58 #endif // NEOCPP_CONNECTION_INTERFACE_NEO4J_INTERFACE_H_
Results Iterator for viewing query results.
Definition: result_iterator_interface.h:32
virtual ResultsIteratorInterface * execute(const char *query)=0
Execute the given Cypher Query.
Definition: neo4j_interface.h:28
Neo4j Query Interface.
Definition: neo4j_interface.h:35