Closed razvanphp closed 9 years ago
Just do be on the same page, are you, with "somehow", proposing to introduce a getExtra() method, or want to make sure that a key/value pair is always present? If it's the second, it should probably not be handled on the client side, but be made sure that it is included from the server side.
I would like more something like
$count = $stmt->execute()->getAffectedRows();
but your idea is also good :+1:
I think you have a point here. :+1: How about both?
$extra = $stmt->execute()->getExtra();
for a direct access to the extras
and something like
$writesExecuted = $stmt->execute()->getWritesExecuted();
or
$affectedDocs = $stmt->execute()->getAffectedDocs();
for a chainable and more direct access to this more widely used value.
BTW, I purposely left out "getAffectedRows" as we're not dealing with rows :smile:
Haha, true, sorry, strong mysql background here, I updated the title.
...yes, me too... no worries :smile:
I implemented the following methods in the 2.5 and devel branches of the driver:
I also created a v2.5.1 tag which contains the changes.
Nicely done, Jan. As always. I would have done it over the weekend, but you were faster ;) I'm slowly getting back into it again, though, and will be contributing again, so you can keep your focus on the DB.
Thanks.
Wow, that was fast, I already implemented it, looks great now.
Thank you!
Today I came across this and I think it should be somehow included in the SDK.
Thank you!