Method: OceanDynamo::Tables::ClassMethods#table_exists?
- Defined in:
- lib/ocean-dynamo/tables.rb
#table_exists?(table) ⇒ Boolean
66 67 68 69 70 71 72 73 74 |
# File 'lib/ocean-dynamo/tables.rb', line 66 def table_exists?(table) return true if table.data_loaded? begin table.load rescue Aws::DynamoDB::Errors::ResourceNotFoundException return false end true end |