pub struct CliRunner { /* private fields */ }Expand description
Main CLI runner that handles command execution
Implementations§
Source§impl CliRunner
impl CliRunner
Sourcepub async fn new() -> NirvResult<Self>
pub async fn new() -> NirvResult<Self>
Create a new CLI runner with default components
Sourcepub async fn execute_query(
&self,
sql: &str,
format: &OutputFormat,
verbose: bool,
) -> NirvResult<String>
pub async fn execute_query( &self, sql: &str, format: &OutputFormat, verbose: bool, ) -> NirvResult<String>
Execute a SQL query and return formatted results
Sourcepub fn list_sources(&self, detailed: bool) -> String
pub fn list_sources(&self, detailed: bool) -> String
List available data sources
Sourcepub async fn show_schema(&self, source: &str) -> NirvResult<String>
pub async fn show_schema(&self, source: &str) -> NirvResult<String>
Show schema information for a data source
Auto Trait Implementations§
impl Freeze for CliRunner
impl !RefUnwindSafe for CliRunner
impl Send for CliRunner
impl Sync for CliRunner
impl Unpin for CliRunner
impl !UnwindSafe for CliRunner
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more