added markers for handling insert
This commit is contained in:
@@ -143,6 +143,9 @@ utils::result<std::unique_ptr<sql::statement_impl>, utils::error> postgres_conne
|
||||
}
|
||||
|
||||
utils::result<sql::execute_result, utils::error> postgres_connection::execute(const sql::query_context &context) {
|
||||
if (context.command == sql::sql_command::Insert) {
|
||||
// handle insert command with the primary key generator strategy
|
||||
}
|
||||
PGresult *res = PQexec(conn_, context.sql.c_str());
|
||||
|
||||
if (const auto status = PQresultStatus(res); status != PGRES_COMMAND_OK && status != PGRES_TUPLES_OK) {
|
||||
|
||||
Reference in New Issue
Block a user