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

Function main

datafusion-examples/examples/data_io/main.rs:138–152  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

136
137#[tokio::main]
138async fn main() -> Result<()> {
139 let usage = format!(
140 "Usage: cargo run --example {} -- [{}]",
141 ExampleKind::EXAMPLE_NAME,
142 ExampleKind::VARIANTS.join("|")
143 );
144
145 let example: ExampleKind = std::env::args()
146 .nth(1)
147 .unwrap_or_else(|| ExampleKind::All.to_string())
148 .parse()
149 .map_err(|_| DataFusionError::Execution(format!("Unknown example. {usage}")))?;
150
151 example.run().await
152}

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…