pub fn get_schema_id_from_config(
    cx: FunctionContext<'_>
) -> JsResult<'_, JsNumber>
Expand description

Function to get SchemaId for given ConnectionType and PrivacyType

Arguments

  • cx - Neon FunctionContext
  • connection_type - ConnectionType string
  • privacy_type - PrivacyType string

Returns

  • JsResult<JsNumber> - Neon JsNumber containing the SchemaId

Errors

  • Throws a Neon error if the SchemaId cannot be found