Registers a variable provider within this context.
(
&self,
variable_type: VarType,
provider: Arc<dyn VarProvider + Send + Sync>,
)
| 1588 | |
| 1589 | /// Registers a variable provider within this context. |
| 1590 | pub fn register_variable( |
| 1591 | &self, |
| 1592 | variable_type: VarType, |
| 1593 | provider: Arc<dyn VarProvider + Send + Sync>, |
| 1594 | ) { |
| 1595 | self.state |
| 1596 | .write() |
| 1597 | .execution_props_mut() |
| 1598 | .add_var_provider(variable_type, provider); |
| 1599 | } |
| 1600 | |
| 1601 | /// Register a table UDF with this context |
| 1602 | pub fn register_udtf(&self, name: &str, fun: Arc<dyn TableFunctionImpl>) { |