MCPcopy Create free account
hub / github.com/cosdata/cosdata / parse_binary_condition

Function parse_binary_condition

src/cosql/condition.rs:76–89  ·  view source on GitHub ↗
(input: &str)

Source from the content-addressed store, hash-verified

74}
75
76pub fn parse_binary_condition(input: &str) -> IResult<&str, BinaryCondition> {
77 map(
78 tuple((
79 parse_variable,
80 ws(parse_binary_condition_operator),
81 parse_value,
82 )),
83 |(left, operator, right)| BinaryCondition {
84 left: left.to_string(),
85 operator,
86 right,
87 },
88 )(input)
89}
90
91pub fn parse_logical_operator(input: &str) -> IResult<&str, LogicalOperator> {
92 alt((

Callers 1

Calls 1

wsFunction · 0.70

Tested by 1