Command Line Tool for AWS Athena (bq command like)
Install by gem:
$ gem install aqAll commands need --bucket option because Athena stores query result into S3.
You can specify it by AQ_DEFAULT_BUCKET environment variable.
Display command help
$ aq help
$ aq help [COMMAND]Show databases or tables in specified database
$ aq ls
$ aq ls my_database_nameShow records in specified table
$ aq head my_db.my_tableCreate database
$ aq mk my_database_nameCreate table and load data
$ aq load my_db.my_table s3://my_bucket/my_object_key/ test/resource/schema.json --partitioning dt:stringDrop database or table
$ aq rm my_db
$ aq rm my_db.my_tableRun query
$ aq query 'SELECT * FROM "test"."test_logs" limit 10;'todo: write
Bug reports and pull requests are welcome on GitHub at https://github.com/mia-0032/aq