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

Function main

datafusion-examples/examples/sql_ops/main.rs:88–102  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

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…