class AmazonAthena::Commands::ShowDatabases

Public Instance Methods

run(connection) click to toggle source
# File lib/amazon_athena/commands/show_databases.rb, line 11
def run(connection)
  connection.query(statement).map {|row| row.database_name }
end
statement() click to toggle source
# File lib/amazon_athena/commands/show_databases.rb, line 7
def statement
  "SHOW DATABASES;"
end