Was this page helpful?
Caution
You're viewing documentation for an unstable version of ScyllaDB Node.js Driver. Switch to the latest stable version.
RustResult¶
RustResult()
A native query result.
Rust gives each result to JS as an External, not as an instance of a native class.
An instance of a native class costs more N-API work: on creation, and on each method call.
This class gives the result the same methods that the native class had.
Each method calls one Rust function with the External.