Methods
(static) close()
Destroy the Kuzu WebAssembly module and kill the worker. This function
should be called when the module is no longer needed to free up resources.
(static) getStorageVersion() → {BigInt}
Get the storage version of the Kuzu WebAssembly module.
Returns:
the storage version of the Kuzu WebAssembly module.
- Type
- BigInt
(static) getVersion() → {String}
Get the version of the Kuzu WebAssembly module.
Returns:
the version of the Kuzu WebAssembly module.
- Type
- String
(static) init()
Initialize the Kuzu WebAssembly module. Calling this function is optional,
as the module is initialized automatically when the first query is executed.
(static) setWorkerPath(workerPath)
Set the path to the WebAssembly worker script. By default, the worker
script is resolved under the same directory / URL prefix as the main
module. If you want to change the location of the worker script, you can
pass the worker path parameter to this function. This function must be
called before any other function calls to the WebAssembly module. After the
initialization is started, the worker script path cannot be changed and not
finding the worker script will cause an error.
Parameters:
| Name | Type | Description |
|---|---|---|
workerPath |
String | the path to the WebAssembly worker script. |