Sha256: 1c17a57e883e75ceb93e04efb15cd4ef01b0e352003350073906b0e9bf6db7d3

Contents?: true

Size: 382 Bytes

Versions: 1

Compression:

Stored size: 382 Bytes

Contents

require_relative '../command'

module AmazonAthena
  module Commands
    class DropTable < AmazonAthena::Command

      def initialize(database_table)
        @database_table = database_table
      end

      def statement
        "DROP TABLE #{@database_table};"
      end

      def run(connection)
        connection.query(statement)

        return
      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/drop_table.rb