4abaf27765
* Extend mgp_module with include adding functions * Add return type to the function API * Change Cypher grammar * Add Python support for functions * Implement error handling * E2e tests for functions * Write cpp e2e functions * Create mg.functions() procedure * Implement case insensitivity for user-defined Magic Functions.
18 lines
632 B
CMake
18 lines
632 B
CMake
# Set up C++ functions for e2e tests
|
|
function(add_query_module target_name src)
|
|
add_library(${target_name} SHARED ${src})
|
|
SET_TARGET_PROPERTIES(${target_name} PROPERTIES PREFIX "")
|
|
target_include_directories(${target_name} PRIVATE ${CMAKE_SOURCE_DIR}/include)
|
|
endfunction()
|
|
|
|
# Set up Python functions for e2e tests
|
|
function(copy_magic_functions_e2e_python_files FILE_NAME)
|
|
copy_e2e_python_files(functions ${FILE_NAME})
|
|
endfunction()
|
|
|
|
copy_magic_functions_e2e_python_files(common.py)
|
|
copy_magic_functions_e2e_python_files(conftest.py)
|
|
copy_magic_functions_e2e_python_files(function_example.py)
|
|
|
|
add_subdirectory(functions)
|