Class: AmazonAthena::Commands::CreateTable
- Inherits:
-
AmazonAthena::Command
- Object
- AmazonAthena::Command
- AmazonAthena::Commands::CreateTable
- Defined in:
- lib/amazon_athena/commands/create_table.rb
Instance Method Summary collapse
-
#initialize(ddl) ⇒ CreateTable
constructor
A new instance of CreateTable.
- #run(connection) ⇒ Object
- #statement ⇒ Object
Methods inherited from AmazonAthena::Command
Constructor Details
#initialize(ddl) ⇒ CreateTable
Returns a new instance of CreateTable.
7 8 9 |
# File 'lib/amazon_athena/commands/create_table.rb', line 7 def initialize(ddl) @ddl = ddl end |
Instance Method Details
#run(connection) ⇒ Object
15 16 17 18 19 |
# File 'lib/amazon_athena/commands/create_table.rb', line 15 def run(connection) connection.query(statement) return end |
#statement ⇒ Object
11 12 13 |
# File 'lib/amazon_athena/commands/create_table.rb', line 11 def statement @ddl end |