pub async fn create_replace_expression_update(
        &self,
        column: &str,
        expression: &JsValue,
    ) -> ViewConfigUpdate {
        let old_expression = self.metadata().get_expression_by_alias(column).unwrap();
        let new_name = self
            .get_validated_expression_name(expression)
            .await
            .unwrap();

        let expression = expression.as_string().unwrap();
        self.get_view_config().create_replace_expression_update(
            column,
            &old_expression,
            &new_name,
            &expression,
        )
    }
/// An async task which replaces a `column` aliased expression with another.
An async task which replaces a `column` aliased expression with another.
An async task which replaces a ` column ` aliased expression with another .
pub async fn create_replace_expression_update(
        &self,
        column: &str,
        expression: &JsValue,
    ) -> ViewConfigUpdate {
        let old_expression = self.metadata().get_expression_by_alias(column).unwrap();
        let new_name = self
            .get_validated_expression_name(expression)
            .await
            .unwrap();
        let expression = expression.as_string().unwrap();
        self.get_view_config().create_replace_expression_update(
            column,
            &old_expression,
            &new_name,
            &expression,
        )
    }
pub async fn create_replace_expression_update ( & self , column : & str , expression : & JsValue , ) -> ViewConfigUpdate { let old_expression = self . metadata ( ) . get_expression_by_alias ( column ) . unwrap ( ) ; let new_name = self . get_validated_expression_name ( expression ) . await . unwrap ( ) ; let expression = expression . as_string ( ) . unwrap ( ) ; self . get_view_config ( ) . create_replace_expression_update ( column , & old_expression , & new_name , & expression , ) }
An async task which replaces a `column` aliased expression with another.
An async task which replaces a ` column ` aliased expression with another .
&self
column
&str
expression
&JsValue
&self
column
&str
expression
&JsValue