memgraph/dc
2016-02-21 22:21:15 +01:00
..
example ifndef are replaced with the pragma once 2015-12-07 21:51:55 +01:00
tmp cpp program runs compile command, test only code 2015-10-22 00:17:40 +02:00
dynamic_lib.hpp Basic CREATE query works (e.g. CREATE (n {age:25, name:"test"}) RETURN n) 2016-02-21 22:21:15 +01:00
README.md Much better but not perfect version of dynamic compile and dynamic load code. DynamicLib class and rudimentar example. 2015-10-25 16:11:52 +01:00
test.cpp query engine can now generate, compile and run dummy code, everything is ready to generate code for dummy the query: CREATE (n {...}) RETURN n 2016-02-07 22:56:52 +01:00

Dynamic Code

man nm

cd memgraph/dc
cd example
clang++ -std=c++1y mysql.cpp -o ../tmp/mysql.so -shared -fPIC
clang++ -std=c++1y memsql.cpp -o ../tmp/memsql.so -shared -fPIC
cd ..
clang++ -std=c++1y test.cpp -o test.out -ldl