MCPcopy Create free account
hub / github.com/GraphLite-AI/GraphLite / has_date_component

Method has_date_component

graphlite/src/ast/ast.rs:1565–1576  ·  view source on GitHub ↗

Check if a temporal type has date component

(&self)

Source from the content-addressed store, hash-verified

1563
1564 /// Check if a temporal type has date component
1565 pub fn has_date_component(&self) -> bool {
1566 match self {
1567 TypeSpec::Date
1568 | TypeSpec::Timestamp { .. }
1569 | TypeSpec::ZonedDateTime { .. }
1570 | TypeSpec::LocalDateTime { .. } => true,
1571 TypeSpec::Time { .. } | TypeSpec::ZonedTime { .. } | TypeSpec::LocalTime { .. } => {
1572 false
1573 }
1574 _ => false,
1575 }
1576 }
1577}
1578
1579/// IS predicate expression: expression IS [NOT] predicate_type [target]

Callers 1

are_comparableMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected