Sha256: 584b1c6c162534c4de0e6d8af4be1bd3caaac673d7b339691e18e89f25132946
Contents?: true
Size: 448 Bytes
Versions: 1
Compression:
Stored size: 448 Bytes
Contents
require_relative '../command' module AmazonAthena module Commands class ShowTables < AmazonAthena::Command def initialize(database_name) @database_name = database_name.strip end def statement "SHOW TABLES IN #{@database_name};" end def run(connection) connection.query(statement).map {|row| row.tab_name } rescue Exception => e e.getCause() 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_tables.rb |