Skip to content

Latest commit

 

History

History
39 lines (34 loc) · 1.18 KB

setAttributesV1.md

File metadata and controls

39 lines (34 loc) · 1.18 KB

setAttributes: Sets the given session attribute values

This command sets the specified session attribute values.

Request fields:

  • command (string) => command name: "setAttributes"
  • attributes (object, optional) => attributes to set for the connection (see Attributes)

Request JSON format

 {
     "command": "setAttributes",
     "attributes": {
             // as defined separately
     }
 }

Response fields:

  • status (string) => command status: "ok" or "error"
  • attributes (object, optional) => attributes set for the connection (see Attributes)
  • exception (object, optional) => only present if status is "error"
    • text (string) => exception message which provides error details
    • sqlCode (string) => five-character exception code if known, otherwise "00000"

Response JSON format

 {
     "status": <"ok" | "error">,
     "attributes": {
             // as defined separately
     },
     // if status is "error"
     "exception": {
             "text": <string>,
             "sqlCode": <string>
     }
 }