Clear rules from the Polar KB, but retain all registered classes and constants.
Free the underlying WASM instance.
Invariant: ensure that you do not do anything else with an instance
after calling free()
on it.
This should not be something you need to do during the course of regular usage. It's generally only useful for scenarios where large numbers of instances are spun up and not cleanly reaped by the GC, such as during a long-running test process in 'watch' mode.
Load a Polar policy file.
Load Polar policy files.
Load a Polar policy string.
Query for a Polar predicate or string.
Query for a Polar rule.
Query for a Polar rule, returning true if there are any results.
Register a JavaScript class for use in Polar policies.
The class to register.
An optional object with extra parameters.
Register a JavaScript value for use in Polar policies.
Start a REPL session.
Create and manage an instance of the Polar runtime.