class AmazonAthena::Commands::ShowCreateTable
Public Class Methods
new(database_table)
click to toggle source
# File lib/amazon_athena/commands/show_create_table.rb, line 7 def initialize(database_table) @database_table = database_table end
Public Instance Methods
run(connection)
click to toggle source
# File lib/amazon_athena/commands/show_create_table.rb, line 15 def run(connection) connection.query(statement).raw_output end
statement()
click to toggle source
# File lib/amazon_athena/commands/show_create_table.rb, line 11 def statement "SHOW CREATE TABLE #{@database_table};" end