{
  "synLogic": "int $ret \u003d $api($1);",
  "help": "The ns_db_connect API establishes a connection to the destination database using the connection string passed as argument\r",
  "notes": "",
  "returns": "",
  "arguments": "",
  "parameterization": "",
   "component": [
    {
      "id": "$1",
      "type": "TextField",
      "label": "Connection String",
      "value": "",
      "css": "p-grid p-align-center w-100-p",
      "title": "Connection string",
      "placeHolder": "",
      "style": "",
      "isDisabled": "",
      "labelVarCheckbox": "",
      "argIndex": 0,
      "validate": {
        "inputType": "Text",
        "disabled": false,
        "required": true,
        "min": 0,
        "max": 0,
        "method": "isValidVar(arg)"
      }
    },
    {
      "id": "$ret",
      "type": "TextField",
      "label": "Return Variable",
      "value": "",
      "css": "p-grid p-align-center w-100-p",
      "title": "Enter Return Variable",
      "placeHolder": "",
      "style": "",
      "isDisabled": "",
      "labelVarCheckbox": "",
      "argIndex": 0,
      "validate": {
        "inputType": "Text",
        "disabled": false,
        "required": true,
        "min": 0,
        "max": 0,
        "method": "isValidVar(arg)"
      }
    }
  ],
  "name": "ns_db_connect",
  "syntax": "int ns_db_connect(char *conn_str)",
  "javaSyntax": "",
  "cEx": "flow()\r\n{\r\n\tif (ns_db_connect(\"DSN\u003dPostgreSQL; Username\u003dnetstorm; Database\u003dtest\") \u003d\u003d -1)\r\n\t{\r\n\t\thandle_error();\r\n\t}\r\n\r\n}",
  "javaEx": "",
  "insertStrC": "ns_db_connect(char *conn_str);",
  "insertStrJava": "",
  "description": "The ns_db_connect API establishes a connection to the destination database using the connection string passed as argument\r"
}
