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

Function main

datafusion-examples/examples/proto/main.rs:78–92  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

76
77#[tokio::main]
78async fn main() -> Result<()> {
79 let usage = format!(
80 "Usage: cargo run --example {} -- [{}]",
81 ExampleKind::EXAMPLE_NAME,
82 ExampleKind::VARIANTS.join("|")
83 );
84
85 let example: ExampleKind = std::env::args()
86 .nth(1)
87 .unwrap_or_else(|| ExampleKind::All.to_string())
88 .parse()
89 .map_err(|_| DataFusionError::Execution(format!("Unknown example. {usage}")))?;
90
91 example.run().await
92}

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…