implement base template operations with the corresponding templates
fully implement the delete operation todo:edit operation
This commit is contained in:
@ -575,6 +575,17 @@ namespace Database {
|
||||
return 0;
|
||||
}
|
||||
|
||||
/*
|
||||
* Executes the prepared statement DELETE_FREELANCER_TEMPLATE
|
||||
* Deletes a templated based on the id and validated with the freelancer email
|
||||
* Takes an open pqxx::connection the template id and the freelancers email
|
||||
*/
|
||||
void executePreparedStatement_DELETE_FREELANCER_TEMPLATE(pqxx::connection &connection, int templateID, const std::string& freelancerEmail) {
|
||||
pqxx::work work(connection);
|
||||
work.exec_prepared(PREPARED_STATEMENT_DELETE_FREELANCER_TEMPLATE, templateID, freelancerEmail);
|
||||
work.commit();
|
||||
}
|
||||
|
||||
/*
|
||||
* Prepares a statement based on ID
|
||||
* Takes an open pqxx::connection, the statement id
|
||||
|
Reference in New Issue
Block a user