mirror of
https://github.com/KingDuckZ/dindexer.git
synced 2025-02-19 12:04:54 +00:00
Move db delete to the postgresql backend lib.
This commit is contained in:
parent
5203fbece2
commit
45ecdb9a2b
5 changed files with 5 additions and 4 deletions
|
@ -2,6 +2,7 @@ project(${bare_name}-backend-postgresql CXX)
|
|||
|
||||
add_library(${PROJECT_NAME} STATIC
|
||||
tag.cpp
|
||||
delete.cpp
|
||||
)
|
||||
|
||||
#target_include_directories(${PROJECT_NAME}
|
||||
|
@ -11,7 +12,7 @@ add_library(${PROJECT_NAME} STATIC
|
|||
|
||||
target_link_libraries(${PROJECT_NAME}
|
||||
PRIVATE ${bare_name}-if
|
||||
PRIVATE pq
|
||||
PRIVATE ${bare_name}-pq
|
||||
)
|
||||
|
||||
install(TARGETS ${PROJECT_NAME}
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
* along with "dindexer". If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include "postgre_delete.hpp"
|
||||
#include "backends/postgresql/delete.hpp"
|
||||
#include "pq/connection.hpp"
|
||||
#include "dindexer-common/settings.hpp"
|
||||
#include "helpers/infix_iterator.hpp"
|
|
@ -3,7 +3,6 @@ project(${bare_name}-delete CXX)
|
|||
add_executable(${PROJECT_NAME}
|
||||
main.cpp
|
||||
commandline.cpp
|
||||
postgre_delete.cpp
|
||||
)
|
||||
|
||||
target_include_directories(${PROJECT_NAME}
|
||||
|
@ -13,6 +12,7 @@ target_include_directories(${PROJECT_NAME}
|
|||
target_link_libraries(${PROJECT_NAME}
|
||||
PRIVATE ${bare_name}-if
|
||||
PRIVATE ${bare_name}-common
|
||||
PRIVATE ${bare_name}-backend-postgresql
|
||||
)
|
||||
|
||||
string(REPLACE "${bare_name}-" "" ACTION_NAME "${PROJECT_NAME}")
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
#include "commandline.hpp"
|
||||
#include "dindexer-common/settings.hpp"
|
||||
#include "dindexerConfig.h"
|
||||
#include "postgre_delete.hpp"
|
||||
#include "backends/postgresql/delete.hpp"
|
||||
#include <iostream>
|
||||
#include <ciso646>
|
||||
#include <ios>
|
||||
|
|
Loading…
Add table
Reference in a new issue