Skip to main content

Module js

Module js 

Source
Expand description

The conversions between JavaScript values and this crate’s.

Each driver’s own js module talks to its binding; these are the conversions both need on either side of that call – one point in each direction, so the two backends cannot drift apart on what a value means.

Functions§

database_error
A DatabaseError for what the binding threw.
from_js
A JavaScript value from a result row, as a Value.
to_js
A bound parameter as the JavaScript value the binding expects.
to_js_array
values as a JavaScript array, in placeholder order.