{
  "synLogic": "int $ret \u003d $api($1);",
  "help": "This API allocates a handle for executing an SQL statement.This API must be called before making a call to ns_db_execute()",
  "notes": "",
  "returns": "This api returns '0' on success and '-1' on failure.",
  "arguments": "\u003ctable class\u003d\"newGuiTable\"  style\u003d\"width:100%\" \u003e 	\u003ctr\u003e 		\u003cth\u003e Argument \u003c/th\u003e     		\u003cth\u003e Description \u003c/th\u003e     	\u003c/tr\u003e 	\u003ctr\u003e    		\u003ctd\u003e p_stmt \u003c/td\u003e     		\u003ctd\u003e The address statement \u003c/td\u003e     	\u003c/tr\u003e      \u003c/table\u003e",
  "parameterization": "",
  "name": "ns_db_alloc_stmt_handle",
  "syntax": "int ns_db_alloc_stmt_handle(void **p_stmt)",
  "javaSyntax": "",
  "cEx": "void *stmt \u003d NULL; \nif (ns_db_alloc_stmt_handle(\u0026stmt) \u003d\u003d -1) \n{ \n  handle_error(); \n}",
  "javaEx": "",
  "insertStrC": "ns_db_alloc_stmt_handle(void **p_stmt);",
  "insertStrJava": "",
  "description": "The ns_db_alloc_stmt_handle API allocates a handle for executing an SQL statement.",
  "component":[
    {
      "id": "$1",
      "type": "TEXT_VAR",
      "label": "Statement",
      "labelVarCheckbox": "If statement is a program variable.",
      "value": "",
      "css": "p-grid p-align-center w-100-p",
      "title": "Enter statement",
      "placeHolder": "",
      "style": "",
      "isDisabled": "",
      "validate": {
        "inputType": "Text",
        "required": true
      }
    },
    {
      "id": "$ret",
      "type": "TextField",
      "label": "Return Value",
      "value": "",
      "css": "p-grid p-align-center w-100-p",
      "title": "Enter Return Value",
      "placeHolder": "",
      "style": "",
      "isDisabled": "",
      "labelVarCheckbox": "",
      "argIndex": 0,
      "validate": {
        "inputType": "Text",
        "disabled": false,
	"required": false,
        "method": "isValidVar(arg)"
      }
    }
  ]

}
