Skip to main content

ScalarFunction

Trait ScalarFunction 

Source
pub trait ScalarFunction: Plugin {
    // Required method
    fn call(
        &self,
        args: &[PropertyValue],
    ) -> Result<PropertyValue, CypherLiteError>;
}
Expand description

A user-defined scalar function callable from Cypher queries.

Accepts zero or more PropertyValue arguments and returns a single PropertyValue.

Required Methods§

Source

fn call(&self, args: &[PropertyValue]) -> Result<PropertyValue, CypherLiteError>

Execute the function with the given arguments.

Implementors§