MCPcopy Create free account
hub / github.com/PRQL/prql / register_compute

Method register_compute

prqlc/prqlc/src/sql/pq/context.rs:141–145  ·  view source on GitHub ↗
(&mut self, compute: Compute)

Source from the content-addressed store, hash-verified

139 }
140
141 pub fn register_compute(&mut self, compute: Compute) {
142 let id = compute.id;
143 let decl = ColumnDecl::Compute(Box::new(compute));
144 self.column_decls.insert(id, decl);
145 }
146
147 /// Creates a new table instance and registers it in the AnchorContext's
148 /// table_instances HashMap. Also generates new IDs and names for columns

Callers 3

fold_transformMethod · 0.80
fold_computeMethod · 0.80

Calls 2

ComputeClass · 0.85
insertMethod · 0.45

Tested by

no test coverage detected