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

Method find

libs/@local/hashql/eval/src/postgres/mod.rs:224–232  ·  view source on GitHub ↗
(&self, body: DefId, block: BasicBlockId)

Source from the content-addressed store, hash-verified

222
223impl<'heap, A: Allocator> PreparedQueries<'heap, A> {
224 pub fn find(&self, body: DefId, block: BasicBlockId) -> Option<&PreparedQuery<'heap, A>> {
225 let start = self.offsets[body];
226 let end = self.offsets[body.plus(1)];
227
228 self.queries[start..end]
229 .iter()
230 .find(|(id, _)| *id == block)
231 .map(|(_, query)| query)
232 }
233}
234
235/// Compiles Postgres-targeted MIR islands into a single PostgreSQL `SELECT`.

Callers 15

enforceProtocolsFunction · 0.45
SelectGroupingFunction · 0.45
RowByLocationFunction · 0.45
RowsByLocationFunction · 0.45
ModelSelectorFunction · 0.45
WebSelectorFunction · 0.45
HistoryRowFunction · 0.45
findFirstEventFunction · 0.45
createTimedReplayFramesFunction · 0.45
seedOrgsAndUsersFunction · 0.45

Calls 3

plusMethod · 0.45
mapMethod · 0.45
iterMethod · 0.45

Tested by 5

findEntityFunction · 0.36
compile_filter_islandsFunction · 0.36
machine_role_assignmentFunction · 0.36
ai_role_assignmentFunction · 0.36
test_diffFunction · 0.36