Difference between revisions of "ODATA READ()"

From Lianjapedia
Jump to: navigation, search
(Created page with "''Under Construction'' ==Purpose== Read records ==Syntax== ODATA_READ(<cURI> [,<cFilename>]) ==See Also== APPEND BLANK, APPEND FROM, APPEND FROM ARRAY, DELETE|...")
 
Line 7: Line 7:
  
 
==See Also==
 
==See Also==
[[APPEND BLANK]], [[APPEND FROM]], [[APPEND FROM ARRAY]], [[DELETE|DELETE (NoSQL)]], [[SQL DELETE|DELETE (SQL)]], [[INSERT]], [[JSON_DECODE()]], [[JSON_DECODE_FILE()]], [[JSON_ENCODE()]], [[ODATA_CREATE()]], [[ODATA_DELETE()]], [[ODATA_UPDATE()]], [[PRINT_JSON()]], [[SQL SELECT|SELECT]], [[SQL UPDATE|UPDATE]]
+
[[APPEND BLANK]], [[APPEND FROM]], [[APPEND FROM ARRAY]], [[DELETE|DELETE (NoSQL)]], [[SQL DELETE|DELETE (SQL)]], [[INSERT]], [[JSON_DECODE()]], [[JSON_DECODE_FILE()]], [[JSON_ENCODE()]], [[OData Operators]], [[ODATA_CREATE()]], [[ODATA_DELETE()]], [[ODATA_UPDATE()]], [[PRINT_JSON()]], [[SQL SELECT|SELECT]], [[SQL UPDATE|UPDATE]]
  
 
==Description==
 
==Description==

Revision as of 07:42, 1 February 2017

Under Construction

Purpose

Read records

Syntax

ODATA_READ(<cURI> [,<cFilename>])

See Also

APPEND BLANK, APPEND FROM, APPEND FROM ARRAY, DELETE (NoSQL), DELETE (SQL), INSERT, JSON_DECODE(), JSON_DECODE_FILE(), JSON_ENCODE(), OData Operators, ODATA_CREATE(), ODATA_DELETE(), ODATA_UPDATE(), PRINT_JSON(), SELECT, UPDATE

Description

The ODATA_READ() function is used to read records.

Example

odata_read("/southwind/shippers")
odata_read("/southwind/shippers","readresults.txt")
? filetostr("readresults.txt")
 
cCreateString = '{"shipperid":4,"companyname":"Acme Inc.","phone":"(503) 555-1234"}'
odata_create("/southwind/shippers",cCreateString)
odata_read("/southwind/shippers")
 
cUpdateString = '{"phone":"(503) 555-5678", "__olddata":{"shipperid":4}}'
odata_update("/southwind/shippers",cUpdateString)
odata_read("/southwind/shippers")
 
cDeleteString = '{"shipperid":4}'
odata_delete("/southwind/shippers",cDeleteString)
odata_read("/southwind/shippers")