class AmazonAthena::Commands::RepairTable

Public Class Methods

new(database_table) click to toggle source
# File lib/amazon_athena/commands/repair_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/repair_table.rb, line 15
def run(connection)
  connection.query(statement)

  return
end
statement() click to toggle source
# File lib/amazon_athena/commands/repair_table.rb, line 11
def statement
  "MSCK REPAIR TABLE #{@database_table};"
end