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.



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

def error
  @error
end

#query_durationObject (readonly)

Returns the value of attribute query_duration.



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

def query_duration
  @query_duration
end

Instance Method Details

#get_all_rows(&blk) ⇒ Object



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

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)


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

def valid?
  error == nil
end