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

Function main

datafusion-examples/examples/dataframe/main.rs:86–100  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

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…