Module: CartoDB::Model::Schema::ClassMethods

Includes:
Constants
Defined in:
lib/cartodb-rb-client/cartodb/model/schema.rb

Constant Summary

Constants included from Constants

Constants::CARTODB_TYPES, Constants::DEFAULT_ROWS_PER_PAGE, Constants::GEOMETRY_COLUMN, Constants::INVALID_COLUMNS, Constants::RGEO_FACTORY

Instance Method Summary collapse

Instance Method Details

#cartodb_table_exists?Boolean

Returns:

  • (Boolean)


16
17
18
19
20
21
22
# File 'lib/cartodb-rb-client/cartodb/model/schema.rb', line 16

def cartodb_table_exists?
  begin
    cartodb_table && cartodb_table.name.eql?(table_name)
  rescue CartoDB::Client::Error => e
    e.status_code != 404
  end
end

#schema_synchronized?Boolean

Returns:

  • (Boolean)


12
13
14
# File 'lib/cartodb-rb-client/cartodb/model/schema.rb', line 12

def schema_synchronized?
  cartodb_table && @columns_synchronized
end