class AmazonAthena::Commands::DropDatabase

Public Class Methods

new(database_name) click to toggle source
# File lib/amazon_athena/commands/drop_database.rb, line 7
def initialize(database_name)
  @database_name = database_name
end

Public Instance Methods

run(connection) click to toggle source
# File lib/amazon_athena/commands/drop_database.rb, line 15
def run(connection)
  connection.query(statement)

  return
end
statement() click to toggle source
# File lib/amazon_athena/commands/drop_database.rb, line 11
def statement
  "DROP DATABASE IF EXISTS #{@database_name};"
end