Sha256: d8ca6da589b4a04f514a10dd53cd06b3caa414aac50110fd58425e9118556e3e
Contents?: true
Size: 621 Bytes
Versions: 1
Compression:
Stored size: 621 Bytes
Contents
module Vertica module Messages class Describe < FrontendMessage message_id ?D def initialize(describe_type, describe_name) @describe_name = describe_name @describe_type = case describe_type when :portal then ?P when :prepared_statement then ?S else raise ArgumentError.new("#{describe_type} is not a valid describe_type. Must be either :portal or :prepared_statement.") end end def to_bytes message_string([ @describe_type.to_byte, @describe_name.to_cstring ]) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
vertica-0.8.1 | lib/vertica/messages/frontend_messages/describe.rb |