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

Method parse

benchmarks/src/sql_benchmark.rs:644–656  ·  view source on GitHub ↗
(value: &str)

Source from the content-addressed store, hash-verified

642
643impl QueryDirective {
644 fn parse(value: &str) -> Option<Self> {
645 if value.eq_ignore_ascii_case("load") {
646 Some(Self::Load)
647 } else if value.eq_ignore_ascii_case("init") {
648 Some(Self::Init)
649 } else if value.eq_ignore_ascii_case("run") {
650 Some(Self::Run)
651 } else if value.eq_ignore_ascii_case("cleanup") {
652 Some(Self::Cleanup)
653 } else {
654 None
655 }
656 }
657
658 fn as_str(self) -> &'static str {
659 match self {

Callers 2

parse_query_file_nameFunction · 0.45
parse_capacity_limitFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected