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

Function entity_definition

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

Source from the content-addressed store, hash-verified

116}
117
118fn entity_definition(input: &str) -> IResult<&str, EntityDefinition> {
119 map(
120 tuple((
121 ws(identifier),
122 ws(tag("as")),
123 separated_list1(ws(char(',')), attribute),
124 ws(char(';')),
125 )),
126 |(name, _, attributes, _)| EntityDefinition {
127 name: name.to_string(),
128 attributes,
129 },
130 )(input)
131}
132
133#[derive(Debug, Clone)]
134struct Role {

Callers

nothing calls this directly

Calls 1

wsFunction · 0.70

Tested by

no test coverage detected