MCPcopy Create free account
hub / github.com/apache/datafusion / main

Function main

datafusion-examples/examples/flight/main.rs:87–101  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

85
86#[tokio::main]
87async fn main() -> Result<(), Box<dyn std::error::Error>> {
88 let usage = format!(
89 "Usage: cargo run --example {} -- [{}]",
90 ExampleKind::EXAMPLE_NAME,
91 ExampleKind::VARIANTS.join("|")
92 );
93
94 let example: ExampleKind = std::env::args()
95 .nth(1)
96 .unwrap_or_else(|| ExampleKind::All.to_string())
97 .parse()
98 .map_err(|_| DataFusionError::Execution(format!("Unknown example. {usage}")))?;
99
100 example.run().await
101}

Callers

nothing calls this directly

Calls 4

nthMethod · 0.80
parseMethod · 0.45
to_stringMethod · 0.45
runMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…