Sha256: f354837e76d4a874c61ca13cfb0c083c4bc8d548b1d8ed2422fcc39cc67b084c

Contents?: true

Size: 366 Bytes

Versions: 1

Compression:

Stored size: 366 Bytes

Contents

require_relative '../command'

module AmazonAthena
  module Commands
    class CreateDatabase < AmazonAthena::Command

      def initialize(name)
        @name = name
      end

      def statement
        "CREATE DATABASE IF NOT EXISTS #{@name};"
      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/create_database.rb