added postgres backend

This commit is contained in:
2023-11-25 12:33:51 +01:00
parent c2a96f4cbd
commit 825e530a8d
20 changed files with 547 additions and 65 deletions
+26
View File
@@ -0,0 +1,26 @@
set(HEADER
include/postgres_connection.hpp
include/postgres_error.hpp
include/postgres_result_reader.hpp
include/postgres_dialect.hpp
)
set(SOURCES
src/postgres_connection.cpp
src/postgres_error.cpp
src/postgres_result_reader.cpp
src/postgres_dialect.cpp
)
add_library(matador-postgres SHARED ${SOURCES} ${HEADER})
target_include_directories(matador-postgres PRIVATE
${PROJECT_SOURCE_DIR}/include
${PROJECT_SOURCE_DIR}/backends/postgres/include
${PostgreSQL_INCLUDE_DIRS})
target_link_libraries(matador-postgres matador ${PostgreSQL_LIBRARIES})
set_target_properties(matador-postgres
PROPERTIES
LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/backends"
)