(
&self,
ctx: &SessionContext,
bench: &mut SqlBenchmark,
reader: &mut BenchmarkFileReader,
line: &mut String,
splits: &[&str],
)
| 724 | } |
| 725 | |
| 726 | async fn process( |
| 727 | &self, |
| 728 | ctx: &SessionContext, |
| 729 | bench: &mut SqlBenchmark, |
| 730 | reader: &mut BenchmarkFileReader, |
| 731 | line: &mut String, |
| 732 | splits: &[&str], |
| 733 | ) -> Result<()> { |
| 734 | trace!("-- handling {}", splits[0]); |
| 735 | |
| 736 | match self { |
| 737 | BenchmarkDirective::Load |
| 738 | | BenchmarkDirective::Run |
| 739 | | BenchmarkDirective::Init |
| 740 | | BenchmarkDirective::Cleanup => { |
| 741 | Self::process_query_directive(bench, reader, line, splits) |
| 742 | } |
| 743 | BenchmarkDirective::Name => Self::process_metadata_value( |
| 744 | bench, |
| 745 | reader, |
| 746 | line, |
| 747 | "name", |
| 748 | "BENCH_NAME", |
| 749 | "name must be followed by a value", |
| 750 | ), |
| 751 | BenchmarkDirective::Group => Self::process_metadata_value( |
| 752 | bench, |
| 753 | reader, |
| 754 | line, |
| 755 | "group", |
| 756 | "BENCH_GROUP", |
| 757 | "group must be followed by a value", |
| 758 | ), |
| 759 | BenchmarkDirective::Subgroup => Self::process_metadata_value( |
| 760 | bench, |
| 761 | reader, |
| 762 | line, |
| 763 | "subgroup", |
| 764 | "BENCH_SUBGROUP", |
| 765 | "subgroup must be followed by a value", |
| 766 | ), |
| 767 | BenchmarkDirective::Expect => Self::process_expect(bench, reader, splits), |
| 768 | BenchmarkDirective::Assert => { |
| 769 | Self::process_assert(bench, reader, line, splits) |
| 770 | } |
| 771 | BenchmarkDirective::ResultQuery => { |
| 772 | Self::process_result_query(bench, reader, line, splits) |
| 773 | } |
| 774 | BenchmarkDirective::Results => Self::process_results(bench, reader, splits), |
| 775 | BenchmarkDirective::Template => { |
| 776 | Self::process_template(ctx, bench, reader, line, splits).await |
| 777 | } |
| 778 | BenchmarkDirective::Include => { |
| 779 | Self::process_include(ctx, bench, reader, splits).await |
| 780 | } |
| 781 | BenchmarkDirective::Echo => Self::process_echo(bench, reader, splits), |
| 782 | } |
| 783 | } |
no outgoing calls