Skip to main content

hyprstream_core/cli/commands/
flight.rs

1//! Flight SQL client command
2//!
3//! Provides `hyprstream flight` subcommand for querying datasets via Flight SQL.
4
5use clap::Args;
6
7/// Flight SQL client arguments
8#[derive(Args, Debug)]
9pub struct FlightArgs {
10    /// Server address to connect to
11    #[arg(long, default_value = "127.0.0.1:50051")]
12    pub addr: String,
13
14    /// SQL query to execute (interactive mode if not provided)
15    #[arg(short, long)]
16    pub query: Option<String>,
17
18    /// Output format (table, csv, json)
19    #[arg(long, default_value = "table")]
20    pub format: String,
21}