added markers for handling insert
This commit is contained in:
@@ -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()),
|
||||
|
||||
Reference in New Issue
Block a user