(&self)
| 86 | } |
| 87 | |
| 88 | async fn run(&self) -> Result<()> { |
| 89 | match self { |
| 90 | ExampleKind::All => { |
| 91 | for example in ExampleKind::runnable() { |
| 92 | println!("Running example: {example}"); |
| 93 | Box::pin(example.run()).await?; |
| 94 | } |
| 95 | } |
| 96 | ExampleKind::AnalyzerRule => analyzer_rule::analyzer_rule().await?, |
| 97 | ExampleKind::ExprApi => expr_api::expr_api().await?, |
| 98 | ExampleKind::OptimizerRule => optimizer_rule::optimizer_rule().await?, |
| 99 | ExampleKind::ParseSqlExpr => parse_sql_expr::parse_sql_expr().await?, |
| 100 | ExampleKind::PlanToSql => plan_to_sql::plan_to_sql_examples().await?, |
| 101 | ExampleKind::PlannerApi => planner_api::planner_api().await?, |
| 102 | ExampleKind::Pruning => pruning::pruning().await?, |
| 103 | ExampleKind::ThreadPools => thread_pools::thread_pools().await?, |
| 104 | } |
| 105 | Ok(()) |
| 106 | } |
| 107 | } |
| 108 | |
| 109 | #[tokio::main] |
no test coverage detected