Sha256: 8b2de291e9c45af693d248183fb427520326b963d2c47557053e46e2dab4e6da
Contents?: true
Size: 403 Bytes
Versions: 1
Compression:
Stored size: 403 Bytes
Contents
require_relative '../command' module AmazonAthena module Commands class ShowColumns < AmazonAthena::Command def initialize(database_table) @database_table = database_table end def statement "SHOW COLUMNS IN #{@database_table};" end def run(connection) connection.query(statement).map {|row| row.field.strip } 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_columns.rb |