Created a couple of delete helpers

This commit is contained in:
2020-10-07 17:16:21 +01:00
parent 02b108635d
commit 3a213123c4
2 changed files with 39 additions and 6 deletions

View File

@@ -29,6 +29,10 @@ char *scalarString(struct stored_conn_t *sconn, const char *qry, size_t qry_len,
// Where query methods
int64_t countQuery(struct stored_conn_t *sconn, const char *table, where_builder *wb);
int softDeleteByIdQuery(struct stored_conn_t *sconn,
const char *table, const char *col, unsigned int id);
int deleteByIdQuery(struct stored_conn_t *sconn,
const char *table, const char *col, unsigned int id);
int deleteQuery(struct stored_conn_t *sconn, const char *table, where_builder *wb);