Class: RubySnowflake::Client::StreamingResultStrategy
- Inherits:
-
Object
- Object
- RubySnowflake::Client::StreamingResultStrategy
- Defined in:
- lib/ruby_snowflake/client/streaming_result_strategy.rb
Class Method Summary collapse
Class Method Details
.result(statement_json_body, retreive_proc) ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/ruby_snowflake/client/streaming_result_strategy.rb', line 6 def self.result(statement_json_body, retreive_proc) partitions = statement_json_body["resultSetMetaData"]["partitionInfo"] result = StreamingResult.new( partitions.size, statement_json_body["resultSetMetaData"]["rowType"], retreive_proc ) result[0] = statement_json_body["data"] result end |