Skip to main content

Crate athena

Crate athena 

Source
Expand description

athena-rs: A CLI tool for managing AWS Athena schemas using templated SQL

This application provides two main commands:

  • build: Render SQL from template files using the Tera template engine
  • apply: Build and execute SQL statements in AWS Athena

ยงExamples

Build SQL from templates:

athena build ./templates

Apply SQL to Athena:

athena apply --output_location=s3://my-bucket/ ./templates

Modulesยง

apply ๐Ÿ”’
AWS Athena query execution functionality
build ๐Ÿ”’
SQL template building functionality
cli ๐Ÿ”’
Command-line interface definitions and argument parsing
tera ๐Ÿ”’
Tera template engine setup and custom functions
utils ๐Ÿ”’
This module provides common utility functions used across the application:

Functionsยง

main ๐Ÿ”’