Sha256: e1776d9e03a62502e85d9494b12c20eadaa851b6d21460cbaec8ebed376da468

Contents?: true

Size: 297 Bytes

Versions: 1

Compression:

Stored size: 297 Bytes

Contents

require_relative '../command'

module AmazonAthena
  module Commands
    class ShowDatabases < AmazonAthena::Command

      def statement
        "SHOW DATABASES;"
      end

      def run(connection)
        connection.query(statement).map {|row| row.database_name }
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
athena-cli-0.1.0 lib/amazon_athena/commands/show_databases.rb