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

Function data_type

org/src/cosql.rs:46–54  ·  view source on GitHub ↗
(input: &str)

Source from the content-addressed store, hash-verified

44}
45
46fn data_type(input: &str) -> IResult<&str, DataType> {
47 alt((
48 map(tag("string"), |_| DataType::String),
49 map(tag("int"), |_| DataType::Int),
50 map(tag("double"), |_| DataType::Double),
51 map(tag("date"), |_| DataType::Date),
52 map(tag("boolean"), |_| DataType::Boolean),
53 ))(input)
54}
55
56#[derive(Debug, Clone)]
57enum Value {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected