DEFINE MODULE statement
A DEFINE MODULE statement is used to define a module via which Surrealism extensions functions can be called.
Note
Statement syntax
Example
A module includes a module and a sub, followed by AS and a pointer to the .surli file containing the Rust code compiled to WASM through the Surrealism CLI.
Once the module is defined, functions can be accessed through this path.
Assuming these two functions in the Rust code before compilation to WASM via the Surrealism CLI:
They will then be accessible using the following paths.