Class: Snowflake::Result

Inherits:
Object
  • Object
show all
Defined in:
lib/ruby_snowflake_client.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#errorObject (readonly)

Returns the value of attribute error.



49
50
51
# File 'lib/ruby_snowflake_client.rb', line 49

def error
  @error
end

#query_durationObject (readonly)

Returns the value of attribute query_duration.



49
50
51
# File 'lib/ruby_snowflake_client.rb', line 49

def query_duration
  @query_duration
end

Instance Method Details

#get_all_rows(&blk) ⇒ Object



55
56
57
58
59
60
61
62
63
64
65
66
# File 'lib/ruby_snowflake_client.rb', line 55

def get_all_rows(&blk)
  GC.disable
  if blk
    while r = next_row do
      yield r
    end
  else
    get_rows_array
  end
ensure
  GC.enable
end

#valid?Boolean

Returns:

  • (Boolean)


51
52
53
# File 'lib/ruby_snowflake_client.rb', line 51

def valid?
  error == nil
end