Sha256: e4b4a3b48d7b9ce1c7bf8890c4232c5e1658106ee5f13a1b04025407b2359871

Contents?: true

Size: 387 Bytes

Versions: 25

Compression:

Stored size: 387 Bytes

Contents

module Vertica
  module Messages
    class ReadyForQuery < BackendMessage
      
      STATUSES = {
        'I' => :no_transaction,
        'T' => :in_transaction,
        'E' => :failed_transaction
      }

      message_id 'Z'

      attr_reader :transaction_status

      def initialize(data)
        @transaction_status = STATUSES[data.unpack('a').first]
      end
    end
  end
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
vertica-0.12.0 lib/vertica/messages/backend_messages/ready_for_query.rb
vertica-0.11.4 lib/vertica/messages/backend_messages/ready_for_query.rb
vertica-0.11.3 lib/vertica/messages/backend_messages/ready_for_query.rb
vertica-0.11.2 lib/vertica/messages/backend_messages/ready_for_query.rb
vertica-0.11.1 lib/vertica/messages/backend_messages/ready_for_query.rb
vertica-0.11.0 lib/vertica/messages/backend_messages/ready_for_query.rb
vertica-0.10.5 lib/vertica/messages/backend_messages/ready_for_query.rb
vertica-0.10.4 lib/vertica/messages/backend_messages/ready_for_query.rb
vertica-0.10.3 lib/vertica/messages/backend_messages/ready_for_query.rb
vertica-0.10.2 lib/vertica/messages/backend_messages/ready_for_query.rb
vertica-0.10.1 lib/vertica/messages/backend_messages/ready_for_query.rb
vertica-0.10.0 lib/vertica/messages/backend_messages/ready_for_query.rb
vertica-0.9.6 lib/vertica/messages/backend_messages/ready_for_query.rb
vertica-0.9.5 lib/vertica/messages/backend_messages/ready_for_query.rb
vertica-0.9.4 lib/vertica/messages/backend_messages/ready_for_query.rb
vertica-0.9.3 lib/vertica/messages/backend_messages/ready_for_query.rb
vertica-0.9.2 lib/vertica/messages/backend_messages/ready_for_query.rb
vertica-0.9.1 lib/vertica/messages/backend_messages/ready_for_query.rb
vertica-0.9.0 lib/vertica/messages/backend_messages/ready_for_query.rb
vertica-0.9.0.beta9 lib/vertica/messages/backend_messages/ready_for_query.rb