MCPcopy Create free account
hub / github.com/hashintel/hash / entity_path_resolution

Function entity_path_resolution

libs/@local/hashql/eval/src/postgres/error.rs:163–179  ·  view source on GitHub ↗
(span: SpanId)

Source from the content-addressed store, hash-verified

161
162#[coverage(off)]
163pub(super) fn entity_path_resolution(span: SpanId) -> EvalDiagnostic {
164 let mut diagnostic = Diagnostic::new(
165 category(PostgresDiagnosticCategory::EntityPathResolution),
166 Severity::Bug,
167 )
168 .primary(Label::new(
169 span,
170 "cannot map this property access to a SQL column",
171 ));
172
173 diagnostic.add_message(Message::note(
174 "indicates a mismatch between the entity type declaration and the SQL column mapping; \
175 this can happen when they get out of sync",
176 ));
177
178 diagnostic
179}
180
181#[coverage(off)]
182pub(super) fn invalid_env_access(span: SpanId) -> EvalDiagnostic {

Callers 1

compile_place_vertexMethod · 0.85

Calls 3

primaryMethod · 0.80
add_messageMethod · 0.80
categoryFunction · 0.70

Tested by

no test coverage detected