pub fn connection_from_js<'a, C: Context<'a>>(
    cx: &mut C,
    connection_js: Handle<'_, JsObject>
) -> NeonResult<Connection>
Expand description

Function to convert JsObject of Connection to Connection

Arguments

  • cx - Neon FunctionContext
  • connection_js - Neon JsObject

Returns

  • Connection - Connection

Errors

  • Throws a Neon error if the connection cannot be converted