Class: AmazonAthena::Commands::DescribeTable
- Inherits:
-
AmazonAthena::Command
- Object
- AmazonAthena::Command
- AmazonAthena::Commands::DescribeTable
- Defined in:
- lib/amazon_athena/commands/describe_table.rb
Instance Method Summary collapse
-
#initialize(database_table) ⇒ DescribeTable
constructor
A new instance of DescribeTable.
- #run(connection) ⇒ Object
- #statement ⇒ Object
Methods inherited from AmazonAthena::Command
Constructor Details
#initialize(database_table) ⇒ DescribeTable
Returns a new instance of DescribeTable.
7 8 9 |
# File 'lib/amazon_athena/commands/describe_table.rb', line 7 def initialize(database_table) @database_table = database_table end |
Instance Method Details
#run(connection) ⇒ Object
15 16 17 |
# File 'lib/amazon_athena/commands/describe_table.rb', line 15 def run(connection) connection.query(statement).raw_output end |
#statement ⇒ Object
11 12 13 |
# File 'lib/amazon_athena/commands/describe_table.rb', line 11 def statement "DESCRIBE #{@database_table};" end |