Home:ALL Converter>how to access postgresql database view using strongloop

how to access postgresql database view using strongloop

Ask Time:2016-03-05T03:30:45         Author:divya

Json Formatter

Please help in accessing postgresql database view using strongloop.
im able to access table

{"name": "test", 
   "options": {
      "idInjection": false,
      "postgresql": {
        "schema": "public",
        "table": "test_data_v"
      }
   }, 
   "properties": {

      "assetid": {
        "type": "String",
        "required": false,
        "length": 40,
        "precision": null,
        "scale": null,
        "id": 1,
        "postgresql": {
          "columnName": "asset_id",
          "dataType": "character varying",
          "dataLength": 40,
          "dataPrecision": null,
          "dataScale": null,
          "nullable": "YES"
        }
      }  
    }}

in same way please suggest me how to access view Thanks Divya

Author:divya,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/35804550/how-to-access-postgresql-database-view-using-strongloop
yy