Class: Vertica::Protocol::Execute

Inherits:
FrontendMessage show all
Defined in:
lib/vertica/protocol/frontend/execute.rb

Instance Method Summary collapse

Methods inherited from FrontendMessage

#to_bytes

Methods inherited from Message

message_id

Constructor Details

#initialize(portal_name, max_rows) ⇒ Execute

Returns a new instance of Execute.



6
7
8
9
# File 'lib/vertica/protocol/frontend/execute.rb', line 6

def initialize(portal_name, max_rows)
  @portal_name = portal_name
  @max_rows    = max_rows
end

Instance Method Details

#message_bodyObject



11
12
13
# File 'lib/vertica/protocol/frontend/execute.rb', line 11

def message_body
  [@portal_name, @max_rows].pack('Z*N')
end