Class: AceMQ::AMQP::Patterns::SQL::Result
- Inherits:
-
Struct
- Object
- Struct
- AceMQ::AMQP::Patterns::SQL::Result
- Defined in:
- lib/acemq/amqp/patterns/sql.rb
Overview
What a statement did.
rows is an array of arrays, always, and never a hash: two drivers
disagree about hash keys and none of them disagree about position.
affected is how many rows a statement changed, which is the answer a
conditional update is asked for — a claim is decided by the row count,
never by the select that preceded it.
That shape is now enforced rather than assumed. It was assumed, and a driver handing back hashes turned every read into a row of nils without raising anything — see positional.
Instance Attribute Summary collapse
-
#affected ⇒ Object
Returns the value of attribute affected.
-
#rows ⇒ Object
Returns the value of attribute rows.
Instance Attribute Details
#affected ⇒ Object
Returns the value of attribute affected
59 60 61 |
# File 'lib/acemq/amqp/patterns/sql.rb', line 59 def affected @affected end |
#rows ⇒ Object
Returns the value of attribute rows
59 60 61 |
# File 'lib/acemq/amqp/patterns/sql.rb', line 59 def rows @rows end |