How isaacadams/bq-rs works
Main Components
a) Client Layer:
• Command Line Interface (CLI)
• Query Processing
• Authentication Handler
b) Core Components:
• BigQuery API Integration
• Service Account Authentication
• Query Execution Engine
c) External Services:
• Google Cloud BigQuery
• Google Cloud Authentication
[User/Terminal] → [CLI Layer] → [Core Services] → [External Services]
Component Relationships
[CLI (src/cli.rs)] → [API Handler (src/api.rs)] → [Query Processor (src/query.rs)]
• ↘ [Authenticator (gauthenticator crate)] → [Google Cloud Auth]
Specific Implementation Details
a) The modular crate structure:
• Main application crate (bq-rs)
• Authentication crate (gauthenticator)
b) Key files and their roles:
• src/main.rs (Entry point)
• src/api.rs (API integration)
• src/query.rs (Query handling)
• gauthenticator crate components