added markers for handling insert

This commit is contained in:
Sascha Kühl
2026-02-10 16:30:39 +01:00
parent 40b163ac39
commit 881e93e0f6
2 changed files with 8 additions and 0 deletions
@@ -23,6 +23,11 @@ utils::result<sql::execute_result, utils::error> postgres_statement::execute(con
if (!postgres_bindings) {
return utils::failure(utils::error(sql::error_code::EXECUTE_FAILED, "Failed to cast bindings to postgres bindings"));
}
if (query_.command == sql::sql_command::Insert) {
// handle insert command with the primary key generator strategy
}
PGresult *res = PQexecPrepared(db_,
name_.c_str(),
static_cast<int>(postgres_bindings->params().values.size()),