(literal: &str)
| 6 | use crate::values::Value; |
| 7 | |
| 8 | pub fn string_literal_to_time(literal: &str) -> Box<dyn Value> { |
| 9 | Box::new(TimeValue { |
| 10 | value: literal.to_string(), |
| 11 | }) |
| 12 | } |
| 13 | |
| 14 | pub fn string_literal_to_date(literal: &str) -> Box<dyn Value> { |
| 15 | let date_time = chrono::NaiveDate::parse_from_str(literal, "%Y-%m-%d").ok(); |
no outgoing calls
no test coverage detected
searching dependent graphs…