Support returned values from Command::execute() #101

Open
opened 2026-10-28 15:42:24 +01:00 by c.fahner · 0 comments
Owner

Currently Command's cannot return any values from their execute() method. This makes it impossible to return things such as errors (eg. when an insert fails due to a unique key constraint) or "last inserted id".

The Command interface should be made generic to allow returning a value from ::execute().

Currently `Command`'s cannot return any values from their `execute()` method. This makes it impossible to return things such as errors (eg. when an insert fails due to a unique key constraint) or "last inserted id". The `Command` interface should be made generic to allow returning a value from `::execute()`.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
slendium/ocd#101
No description provided.